/build/static/layout/Breadcrumb_cap_w.png

gpupdate

How can I send the command to force a Group Policy Update followed by a reboot (gpupdate /force /sync boot) to multiple computers? As a Script with the command in a batch file it is successfully sent but doesn't happen.

0 Comments   [ + ] Show comments

Answers (9)

Posted by: bbrian 14 years ago
Yellow Belt
0
Try this:

http://www.specopssoft.com/web/specops-gpupdate.aspx
Posted by: airwolf 14 years ago
Red Belt
0
Use a KScript. You may want to break up the gpupdate and the reboot into two separate commands.
Posted by: RichB 14 years ago
Second Degree Brown Belt
0
This is the Kscript which gets sent but the computer never reboots:

Launch “SYS\gpupdate.exe” with params “/force /sync /boot”.

I would prefer to get it working in KBOX rather trying to convince others to install a third party software on our active directory server.
Posted by: RichB 14 years ago
Second Degree Brown Belt
0
I suppose another command to Reboot would be a script like this, right?

Launch “SYS\shutdown.exe” with params “/r”.

I'm a Mac tech learning the PC side of things. On a Mac it is "shutdown -r now"
Posted by: airwolf 14 years ago
Red Belt
0
You'd probably want to use "SYS\shutdown.exe" with params "-r -f -t 00" which will force a reboot with a 0s timeout.
Posted by: GillySpy 14 years ago
7th Degree Black Belt
0
We never recommend a 0 second timeout on the shutdown command. 90 seconds is what we recommend. This is because the kbox needs time to tell the server that it finished the task. otherwise the task will not register as complete and the kbox might tell the PC to do it again.
Posted by: airwolf 14 years ago
Red Belt
0
Good to know!
Posted by: RichB 14 years ago
Second Degree Brown Belt
0
It seems the answer to my original problem was that when the gpupdate is sent by KBOX as System there's not an Active Directory User Profile to be updated. The gpupdate command assumes user and computer policies. The error message is about a file not found. The command can be tailored to updating computer policies only and now this Kscript works great:
%WINDIR%\System32\gpupdate.exe /force /target:computer /sync /boot
Posted by: GillySpy 14 years ago
7th Degree Black Belt
0
Somewhat related, in 5.1 you can run scripts in a "run as" type of way. You can register here:
[link]https://kace.webex.com/mw0305l/mywebex/default.do?siteurl=kace&service=7[/link]
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ