Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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 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


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.