Computing.Net > Forums > Windows Server 2003 > Gpupdate and restart script help

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Gpupdate and restart script help

Reply to Message Icon

Name: antony_wesley
Date: January 30, 2005 at 09:48:05 Pacific
OS: 2003
CPU/Ram: 256
Comment:

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



Sponsored Link
Ads by Google

Response Number 1
Name: altreed
Date: January 31, 2005 at 08:02:43 Pacific
Reply:

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


0

Response Number 2
Name: antony_wesley
Date: January 31, 2005 at 12:22:32 Pacific
Reply:

Sorry but I copied and pasted this and it did not work.

tony


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


dns setup Terminal Server on separa...



Post Locked

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


Go to Windows Server 2003 Forum Home


Sponsored links

Ads by Google


Results for: Gpupdate and restart script help

Applying Group Policies to Users www.computing.net/answers/windows-2003/applying-group-policies-to-users/8104.html

Win 2k3 Server wont restart www.computing.net/answers/windows-2003/win-2k3-server-wont-restart/819.html

Win2003 restarting problem www.computing.net/answers/windows-2003/win2003-restarting-problem/1983.html