Search This Blog
A technical blog that refers to IT issues encountered, and the real-world solutions behind them.
Featured
- Get link
- X
- Other Apps
Using Windows command prompt to put a machine to sleep
I ran into a problem where a machine was no longer
responding to the sleep selection in the GUI on Windows 7 Ultimate.
An alternative way to sleep the machine is to utilize the
command-line (create a shortcut to a .cmd script that
contains the instruction) as follows:
Open an Administration Command Prompt. Hit the “WINDOWS” key
once and start typing “CMD”. Right click on the “Command Prompt” item that is
displayed and select “Run as Administrator”.
Ensure the machine doesn't hibernate as we're trying to
sleep it:
POWERCFG /HIBERNATE OFF
(The above may fail depending on policy if on domain etc.)
RUNDLL32.EXE powrprof.dll,SetSuspendState
0,1,0
With some machines, you may have to briefly press a power
button once to wake the machine back up. It should return in a locked state,
requiring login/password.
- Get link
- X
- Other Apps
Popular Posts
Health Supplements you should be taking
- Get link
- X
- Other Apps
Comments