I use the Start > Shut Down command at the end of every workday, then pick Stand by. This way I don't have to open my laptop to hit the Sleep or Hibernate keys.

It takes a very long time for the window to come up after I hit Shut Down. At least 60 seconds, and sometimes 2-3 minutes. In the meantime, I can work normally in apps, but the taskbar is completely busy and unresponsive.

Strangely, after the first long delay, if I cancel out, it will come up quickly (a few seconds) if I try it again.

So, a two part question:

1) Has anyone seen this before and know what could cause it?

2) Is there another way to go into stand-by using only software means?

link|improve this question
does that happen when you try to shut down right after computer boots up? – codingbear Jul 17 '09 at 21:59
feedback

7 Answers

up vote 4 down vote accepted

I ran Sysinternals ProcMon once to see what a machine was doing that took it so long to think about shutting down. The answer: explorer.exe scanning the Recycle Bin. So in this case I was able to speed up the shutdown of this machine hugely, by simply emptying the Recycle Bin.

It also explains the reason why it's quick the second time round: because the relevant part of the file system has been cached.

link|improve this answer
I like this answer a lot. I do tend to have a very large Recycle Bin (thousands of entries), and the HDD on this laptop is not that fast. I will see if it helps at the end of the day today. – smackfu Jul 20 '09 at 16:55
Yes, I emptied the Recycle Bin, and 6 hours later at the end of the day, the Shut Down window came up instantly. Bravo. – smackfu Jul 21 '09 at 0:50
feedback

You could try this command from the Run... window:

 %windir%\System32\rundll32.exe powrprof.dll,SetSuspendState

Note: to go in standby and avoid hibernation, make sure that the system is hibernation disabled. To confirm that, Click the Start button, go to Run menu and type in Powercfg.cpl and click OK. In the Power Options Propertiesclick Hibernate tab and make sure that Enable hibernation option is unchecked. Click OK/Apply.

See this Microsoft support article: How To Put the System into hibernation or Standby from Run menu

link|improve this answer
feedback

If you are using standby then it could be todo with enumerating the memory into a coherant state for serialization to disk. When you do it a second time, it probably has the work it did in the last long pause still in memory, hence it is quick.

Unless it breaks stuff, let it do it. If you have alot of RAM in use then it may take longer.

link|improve this answer
1  
Standby doesn't dump memory to disk. Hibernate does. – gbarry Jul 18 '09 at 4:15
...oh yea.....crap........ – Aiden Bell Jul 18 '09 at 10:33
feedback

You can run shutdown.exe as a scheduled task for when you leave at night, and then set your BIOS to boot the computer every day a few minutes before you get to work.

link|improve this answer
feedback

Windows will 'query' all applications (with windows open, some application use invisible windows) if it's OK to 'end the session', providing for a way to pop-up the 'save changes? yes no cancel' messagebox.

Which applications are you running, and could there be one that takes forever to ponder over the response of the 'query end session' message?

link|improve this answer
Good theory, but I don't think it would send the end session message until I choose Shutdown or Logoff from the Shutdown popup, and this is before that. – smackfu Jul 18 '09 at 13:31
feedback

What a pickle of a question.

I'm smelling a hard drive issue in the beginning. I would be inclined to run chkdsk /r from the command prompt - reboot, and then once the chkdsk is complete, run a defrag.

I'm willing to bet that the files used when Windows attempts to shut down are either on a faulty sector of the drive, or on a heavily fragmented part.

If you're pulling at straws, you could also run:

  1. sfc /scannow - You may have a wonky system file somewhere.
  2. CCleaner - temp files or bad registry keys could be part of the cause.
link|improve this answer
feedback

I suggest you to download and install Microsoft User Profile Hive Cleanup Service I remember that it helped me in the past when applied to some computers that had similar problems.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.