blob: 6f8a1f35ee2baa408fcc61b625396162897043dc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
#### <u>Shutdown Options</u>
- Restart computer into BIOS
```dos
shutdown /r /fw /f /t 0
```
- Shutdown
```dos
shutdown /s
```
- Restart
```dos
shutdown /r
```
---
#### <u>BCDEdit (Boot Configuration Data) Command-line Options</u>
- Enable safe mode via commandline
```dos
bcedit /set {default} bootmenupolicy legacy
```
- Disable hyper-v
```dos
bcdedit /set hypervisorlaunchtype off
```
- Enable hyper-v
```dos
bcdedit /set hypervisorlaunchtype auto
```
---
#### <u>Disable Run Privileges bell</u>
- Turn off beeping
```cmd
net stop beep
```
> NOTE: Replace `stop` with `start` to allow the service to work again. Defaults back to on at startup.
- Too disable at startup
- cmd:
```cmd
sc config beep start= disabled
```
> NOTE: Replace `disabled` with `auto` to allow at startup
- powershell:
```powershell
set-service beep -startuptype disabled
```
> NOTE: Replace `disabled` with `automatic` to allow at startup
---
#### <u>Allow script execution</u>
- Run the following command in PowerShell as an administrator:
```dos
Set-ExecutionPolicy RemoteSigned
```
---
|