Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Shutdown, LogOff, Sleep, and Hibernation Question?

22 Oct 2010   #1
Gorgrak

Windows 7 Home Premium 64bit
 
 
Shutdown, LogOff, Sleep, and Hibernation Question?

Hey I was trying to add a task scheduler script to run when the computer logs off, but does Windows log off when shutting down, sleeping, or hibernating? and when does the computer switch between sleep and hibernation? And why does my computer freeze after Sleep/Hibernation (or what could I do to find out the culprit)?

Sorry for so many questions!!


My System SpecsSystem Spec
.

22 Oct 2010   #2
brianzion

Operating System : Windows 7 Home Premium Edition 6.01.7600 SP1 (x64)
 
 

hello welcome to the forums have a look at barefootkids tutorial for How to Create a Task that will Shut Down the PC Automatically
Task Scheduler : Create Shut Down PC Automatically Task
brinks tutorial
How to Enable or Disable Hibernate in Windows 7
Hibernate - Enable or Disable
My System SpecsSystem Spec
22 Oct 2010   #3
Gorgrak

Windows 7 Home Premium 64bit
 
 

thanks for the tutorials! the hibernation one was good to know. the shutdown one, however, misses the point of my inquery. I was wondering if Windows logs off before shutting down? The script I wrote disables a USB audio interface I have (because it's drivers aren't working too well in windows 7 whenever my computer sleeps or shuts down) when the computer logs off. This would be pointless, though, if Windows doesn't log off at shutdown...
My System SpecsSystem Spec
.


22 Oct 2010   #4
Brink
Microsoft MVP

64-bit Windows 10 Pro
 
 

Hello Gorgrak,

When you click on Shut Down, Windows will log off users first, then shut down the computer.

Hope this helps,
Shawn
My System SpecsSystem Spec
22 Oct 2010   #5
Gorgrak

Windows 7 Home Premium 64bit
 
 

yes sir thank you so much!
My System SpecsSystem Spec
22 Oct 2010   #6
Brink
Microsoft MVP

64-bit Windows 10 Pro
 
 

You're welcome.
My System SpecsSystem Spec
Reply

 Shutdown, LogOff, Sleep, and Hibernation Question?




Thread Tools





Similar help and support threads
Thread Forum
Enable user account at logoff/shutdown - server 2008 R2
Hi folks. I've got Server 2008 R2 laptop that I need to transfer files to. Frequently, when I reconnect the mapped drive on the source computer, it disables my account on the laptop. Sometimes I forget to check & re-enable it, causing me to get someone to re-enable my account. I created a...
General Discussion
Sleep and hibernation question
would ether prevent a thunder storm from screwing up my mobo R is powering off the pc better then both to prevent it R unplugging it
General Discussion
Logoff script not running at shutdown
I have a script that launches Ccleaner and needs to run at shutdown. Shutdown scripts do not run within the user space as I understand, so I figured I'd use a logoff script which will run while the user is still logged in. The logoff script works when logging off as expected, but does not run...
General Discussion
Remove logoff & shutdown gpedit BUG?
Hello, I have followed various tutorials on how to remove the shutdown button in the start menu via gpedit.msc I have done this successfully. I have also been able to remove the start > arrow next to shut down > log off button which greys out. gpedit.msc > user configuration >...
General Discussion
Is there a way to execute a prgm/script at user logoff/shutdown?
In old WinXP there was a tricky feature in Group Policy editor to execute a script when a User logs off resp. the computer was shutdown. I do not find this feature in Windos 7 (pro). is there another way to execute a *.bat batch script at a) user logoff b) shutdown? Peter
General Discussion
Logoff/sleep freezes
I used the upgrade process in Win7 to go to Win7 from Vista. Everything works well except when I try to sleep (close the lid on laptop) or logoff. The system freezes sometimes and I have to force the system down with a power off. It appears that the first attempt usually works. The next...
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 08:59.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App