srdusr
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsrdusr <[email protected]>2023-10-12 23:37:36 +0200
committersrdusr <[email protected]>2023-10-12 23:37:36 +0200
commit5ebe1543ea36e2ea9ced2817a0fd864efa27d2e4 (patch)
tree8fd18fa97a23dec817d0c2111e70e6de39f69f78
parent60094b51c628c2cc6036a5a71252781daa461bfc (diff)
downloadnotes-5ebe1543ea36e2ea9ced2817a0fd864efa27d2e4.tar.gz
notes-5ebe1543ea36e2ea9ced2817a0fd864efa27d2e4.zip
Moved windows to new directory 'os'
-rw-r--r--os/windows/windows-commands.md64
1 files changed, 64 insertions, 0 deletions
diff --git a/os/windows/windows-commands.md b/os/windows/windows-commands.md
new file mode 100644
index 0000000..6f8a1f3
--- /dev/null
+++ b/os/windows/windows-commands.md
@@ -0,0 +1,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
+```
+
+---