Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Windows Registry Editor Version 5.00
- [-HKEY_CLASSES_ROOT\DesktopBackground\Shell\Power]
- [HKEY_CLASSES_ROOT\DesktopBackground\Shell\Power]
- "Icon"="shell32.dll,-28"
- "MUIVerb"="Power"
- "Position"="Bottom"
- "SubCommands"=""
- [HKEY_CLASSES_ROOT\DesktopBackground\Shell\Power\shell\001Sleep]
- "MUIVerb"="Sleep"
- "Icon"="shell32.dll,-26"
- [HKEY_CLASSES_ROOT\DesktopBackground\Shell\Power\shell\001Sleep\command]
- @="powershell.exe -C \"$m='[DllImport(\\\"Powrprof.dll\\\",SetLastError=true)]static extern bool SetSuspendState(bool hibernate,bool forceCritical,bool disableWakeEvent);public static void PowerSleep(){SetSuspendState(false,false,false); }';add-type -name Import -member $m -namespace Dll; [Dll.Import]::PowerSleep();\""
- [HKEY_CLASSES_ROOT\DesktopBackground\Shell\Power\shell\002Shutdown]
- "MUIVerb"="Shutdown"
- "Icon"="shell32.dll,-28"
- "CommandFlags"=dword:00000020
- [HKEY_CLASSES_ROOT\DesktopBackground\Shell\Power\shell\002Shutdown\command]
- @="shutdown /s /f /t 0"
- [HKEY_CLASSES_ROOT\DesktopBackground\Shell\Power\shell\003Restart]
- "MUIVerb"="Restart"
- "Icon"="shell32.dll,-16739"
- ;"CommandFlags"=dword:00000020
- [HKEY_CLASSES_ROOT\DesktopBackground\Shell\Power\shell\003Restart\command]
- @="shutdown /r /f /t 0"
- [HKEY_CLASSES_ROOT\DesktopBackground\Shell\Power\shell\004RestartBootMenu]
- "MUIVerb"="Restart to BootMenu"
- "Icon"="cmd.exe"
- ;"CommandFlags"=dword:00000020
- [HKEY_CLASSES_ROOT\DesktopBackground\Shell\Power\shell\004RestartBootMenu\command]
- @="shutdown.exe /r /o /f /t 0"
- [HKEY_CLASSES_ROOT\DesktopBackground\Shell\Power\shell\005RefreshExplorer]
- "MUIVerb"="Refresh Explorer"
- "Icon"="explorer.exe"
- "CommandFlags"=dword:00000020
- [HKEY_CLASSES_ROOT\DesktopBackground\Shell\Power\shell\005RefreshExplorer\command]
- @="cmd.exe /c taskkill /f /im explorer.exe & start explorer.exe"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement