Skip to main content.
September 18th, 2007

Forcing Windows to Hibernate

I usually use my home machine (running Windows 2003) from my office through Remote desktop. Sometimes in the evenings I want to hibernate it but the hibernation fails if I have used the machine remotely even if all remote connections are closed. I think this is a bug but I am not sure.

In the event log I see this message: “A request to suspend power was
denied by winlogon.exe”. This means that Windows intentionally does not want to hibernate because it thinks some remote users are still connected (which is not true).

I found two solutions to this problem:

1) Instead of using Start –> Shut Down –> Hibernate, use this command from the console:

shutdown /f /h

2) Compile and use this C# code to force Hibernation programmatically:

Posted by nakov in blog

This entry was posted on Tuesday, September 18th, 2007 at 10:33 am and is filed under blog. You can follow any responses to this entry through the comments RSS 2.0 feed. Both comments and pings are currently closed.

Comments are closed.