Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

On an XP Pro box, using gpedit.msc I set up a shutdown script to log something over the network. However, the script was failing, and after some research, it appears that the network is practically the first thing to go while shutting down.

Because there will always be a user logged in when the box shuts down (it runs a daemon that cannot be configured as a service), I tried making it a logoff script - and it worked!

My dilemma is this: is there ever a time when XP Pro does not run these logoff scripts when the machine is going down (aside, obviously, from a total crash)? Is there a better way to ensure that a certain action is taken for every shutdown?

Thanks in advance!

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

If a machine is turned on but logged out and a Windows Update cycle hits, that reboot will not fire off the Logoff script. However, in this case you will always have a logged in user otherwise the service would be out so this is a distant edge case. A logoff-script is actually a good choice in this situation!

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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