Turning off a Windows PC - Part 2
Shutdown: Copy and paste the following: Shutdown.exe /s /t 00
Restart: Copy and paste the following: Shutdown.exe /r /t 00
Sleep*: Copy and paste the following: rundll32.exe powrprof.dll,SetSuspendState 0,1,0
Hibernate: Copy and paste the following: rundll32.exe PowrProf.dll,SetSuspendState
Lock: Copy and paste the following: Rundll32.exe User32.dll,LockWorkStation
*Depending on your PC, Sleep may Hibernate instead. If so, choose Sleep in the usual way, or, now that you have a Shutdown icon, you could change your Power button to Sleep instead. You may also have a Sleep symbol on an F key, or elsewhere on the keyboard.