Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I am trying to find or write a script or .bat that will run - gpupdate /force /boot on all my network computers. I install loads of MSI files in different locations and have to restart every pc manually (usually twice) to load software. Does anyone know how I can do this better. I have thought of a way such as create a bat file that will run gpupdate and boot and load it on every pc. I can do this and then browse to the file on every pc on the server and make another bat file on the server to run every file.
Surely their must be an easier way ? If so can anyone help
tony

'Define Shell
I would use this VBScript file to do the things you want above.
Set WshShell = WScript.CreateObject("WScript.Shell")'********* Force GP Update *********
nGPUPDATE = wshShell.Run("gpupdate", 0, TRUE)
'********* Force reboot *********
nREBOOT = wshShell.Run("shutdown -r -t 00", 0, TRUE)

![]() |
dns setup
|
Terminal Server on separa...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |