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

Command Line Tip

by Guest Post on October 28, 2009 · 3 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: [\\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

{ 1 trackback }

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

{ 2 comments… read them below or add one }

Tim Thein November 8, 2010 at 9:49 pm

Thanks a lot, there have been many time I’ve been searching for this answer.

jamie May 25, 2011 at 7:45 pm

I ran your command in msconfig, but it’s telling me I don’t have permissions to run it. However, when I checked my account settings, I’m logged in as an admin:

How can I either get around this or find another reason why my computer won’t sleep? It’s very frustrating.


Leave a Comment

Previous post:

Next post: