Windows 7 – Why your computer won’t go to sleep.

Command Line Tip

by Steve Wiseman on October 28, 2009 · 2 comments

in Command Line,Tips,Tools,Utility

I have been playing around with the powercfg utility built into Windows 7, and I came across an interesting command line option:

powercfg /requests

What it does is list the reasons why your computer failed to go to sleep. I had the sleep function enabled on my desktop PC, and I noticed when I came back after a few hours it was still on. The output from the /requests command looked like this:

[DRIVER] \FileSystem\rdbss
A file has been opened across the network. File name: [\10.10.30.1\c$\code\SnapShot.cpp] Process ID: [5488]

Ahh. Now I remember…I had a robocopy scheduled to run in the background to backup my code ever hour. Since I no longer needed it, I disabled the schedule.

Now after an hour my system goes to sleep with no problem

Like this article? Then sign up for my newsletter to get free tips and software sent right to your inbox once a week. Like you, I hate spam – I will never spam, or sell your email address.

Related Articles

{ 1 trackback }

Windows 7 can’t go to sleep | Pixelapes
January 15, 2010 at 8:00 am

{ 1 comment… read it below or add one }

andy March 27, 2010 at 1:37 am

Thanks for the post. Unfortunately we have a legacy ERP app that seems to keep our 7 machines from sleeping, even though all related processes are terminated and the file is obviously no longer open. This seems to be an issue that MS needs to address in future updates.

[a]

Leave a Comment

Previous post:

Next post: