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

I've got a patch file with the following content:

gpupdate /force /boot /logoff

When executing this file it causes an infinite loop, executing the line in the same cmd window again and again. This occurs on a XP 32bit client as well as on a Win 7 64bit client. The Server hosting AD is Server 2008 R2.

How can I solve this issue/improve this script? The script is just for my convenience, it gets executed manually. I want to force the client to update the group policy.

edit: When I type the line in a terminal and execute it the loop will not occur.

share|improve this question

1 Answer 1

Maybe because you're trying to reboot and logoff at the same time. Try one or the other. Since a reboot will force a logoff but a logoff won't force a reboot, I would use /Boot instead of /Logoff.

share|improve this answer
    
First, a reboot is only issued when applying the GPO requires a reboot, so if I would use /boot option only, a GPO that needs just a re-login would not be applied. Second, when I type the command line manually in a terminal, the loop does not occur, that's the strange thing... –  Scolytus Aug 8 '11 at 14:53
    
I thought using the /Boot parameter forced a reboot regardless? –  joeqwerty Aug 8 '11 at 15:52
    
According to technet.microsoft.com/en-us/library/cc739112%28WS.10%29.aspx it only reboots when necessary. That's also my observation of the tool's behaviour. (I don't think that changed from Server 2003, where the link comes from...) –  Scolytus Aug 8 '11 at 16:12
    
Thanks for the info. –  joeqwerty Aug 8 '11 at 16:18

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.