From 5ebe1543ea36e2ea9ced2817a0fd864efa27d2e4 Mon Sep 17 00:00:00 2001 From: srdusr Date: Thu, 12 Oct 2023 23:37:36 +0200 Subject: Moved windows to new directory 'os' --- os/windows/windows-commands.md | 64 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 os/windows/windows-commands.md 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 @@ +#### Shutdown Options + +- Restart computer into BIOS +```dos +shutdown /r /fw /f /t 0 +``` +- Shutdown +```dos +shutdown /s +``` +- Restart +```dos +shutdown /r +``` + +--- + +#### BCDEdit (Boot Configuration Data) Command-line Options + +- 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 +``` + +--- + +#### Disable Run Privileges bell + +- 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 + +--- + +#### Allow script execution + +- Run the following command in PowerShell as an administrator: + +```dos + Set-ExecutionPolicy RemoteSigned +``` + +--- -- cgit v1.2.3