Answer» Can someone give me the script to put in a batch FILE to REBOOT a Win2000 or Win 2000 server? Thanks.Add Shutdown -r -t 15 to your batch file. The t switch is a delay time in seconds allowing USERS to close programs. Change accordingly.
Hope this helps. When I type this in I get the following ERROR: 'Shutdown' is not a recognized internal or external command.
Shutdown does not appear to be a valid command in Win2000.Learn something everyday. Oh well. Try this link for a free utility. Hopefully it will run at the command line.
Shutdown
This script will shutdown a Win2000 computer:
Code: [Select] strComputer = "." Set objWMIService = GetObject_ ("winmgmts:{impersonationLevel=impersonate,(Shutdown)}\\" & _ strComputer & "\root\cimv2")
Set colOperating Systems = objWMIService.ExecQuery _ ("Select * from Win32_OperatingSystem") For Each objOperatingSystem in colOperatingSystems objOperatingSystem.Win32Shutdown(1) Next
Excuse the late reply...just had a brainstorm
|