Force a reboot

  • Thread starter Thread starter Arsen
  • Start date Start date
A

Arsen

I have 2000 win2k machines thought my enterprise, with AD implemented. Is
there a way to force a reboot for all the workstations overnight?
But, just the workstations not the servers.
 
Hello Arsen

Assign the follow within a Startup Script within a Group Policy for the
particular OU where you have your computers stored with in Active Directory.

Script Code from Microsoft TechNet Script Center:

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set objNewJob = objWMIService.Get("Win32_ScheduledJob")
errJobCreated = objNewJob.Create _
("Shutdow -r", "********123000.000000-420", _
True , 1 OR 4 OR 16, , , JobID)
Wscript.Echo errJobCreated

--
Regards,

Christoffer Andersson
No email replies please - reply in the newsgroup
If the information was help full, you can let me know at:
http://www.itsystem.se/employers.asp?ID=1
 
Back
Top