delay the logoff process so a GPO script can run?
The Windows 7 logoff is so fast that a critical logoff script is failing. The win7 machines are joined to an AD and the scripts are run via a GPO. The scripts live on the local machines. (batch script) The script was simple as pie: ***** c:\Windows\our-little-program.exe ping -n 5 127.0.0.1 ***** This script requires network to be active, and needs ~5 seconds to complete. We used to slow down logoffs on XP/Vista by simply putting "ping -n 5 127.0.0.1" into the batch script, the result of that ping is a 5 second wait before the logoff continues. 5 seconds was always enough time for the script to finish. I'm almost certain this script worked fine in Windows 7 early versions. But with SP1, that all changed. Now the logoff process shuts everything down immediately, does not wait for the ping to finish, and the script dies as a result. I've searched around, found no insight into how to actually delay the logoff process. I did find a "solution" online, http://social.technet.microsoft.com/Forums/ar/winserverpowershell/thread/2d72ab03-3db1-40f3-a8c2-f7055797a0e8, but that doesn't work for us because we are not invoking a web browser in the script. We are simply invoking an executable program. Thanks for any ideas.
October 21st, 2011 3:20pm

Hi, Please check whether the similar thread below helps. http://social.technet.microsoft.com/Forums/en/w7itproinstall/thread/325c7b31-a466-4582-aa83-85cf2b81057d Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
October 25th, 2011 3:40am

Hi, Please check whether the similar thread below helps. http://social.technet.microsoft.com/Forums/en/w7itproinstall/thread/325c7b31-a466-4582-aa83-85cf2b81057d Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
October 25th, 2011 10:38am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics