Disable hibernation
Run at the command line: powercfg -h off This command will disable hibernation and delete the hiberfil.sys file in the root of the C: drive, to which the system copies the contents of RAM before shutting down.
Run at the command line: powercfg -h off This command will disable hibernation and delete the hiberfil.sys file in the root of the C: drive, to which the system copies the contents of RAM before shutting down.
Disable:
1 2 3 4 5 |
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem] "ConsentPromptBehaviorAdmin"=dword:00000000 "EnableLUA"=dword:00000000 "PromptOnSecureDesktop"=dword:00000000 |
CMD script to clear the print queue with the restart of the print manager.
1 2 3 4 5 6 |
@echo off net stop spooler IF EXIST "WindowsSystem32spoolPRINTERS" del "WindowsSystem32spoolPRINTERS*.*" /f /s /q net start spooler echo Finished pause |