Restarting win2k workstations from command prompt

G

Glenn

I would like to schedule a restart of some of the
workstations every night. Right now I use scheduler as a
domain admin to run some scheduled processes. I was
hopeing that I could run a command thru a batch(.bat
or .cmd) file to restart these systems. But I for the life
of me I can not find a dos command that restarts windows.
I use iisrestart /reboot to restart works on my iis
Servers but no idea about how to accomplish a reboot from
command prompt on a windows 2000 workstation. Thank you
for your help.
Glenn
 
M

M@

I would like to schedule a restart of some of the
workstations every night. Right now I use scheduler as a
domain admin to run some scheduled processes. I was
hopeing that I could run a command thru a batch(.bat
or .cmd) file to restart these systems. But I for the life
of me I can not find a dos command that restarts windows.
I use iisrestart /reboot to restart works on my iis
Servers but no idea about how to accomplish a reboot from
command prompt on a windows 2000 workstation. Thank you
for your help.
Glenn


use xnet.exe that is provided with kixtart scripting
http://www.kixtart.org/

HTH


M@
 
J

Jerold Schulman

I would like to schedule a restart of some of the
workstations every night. Right now I use scheduler as a
domain admin to run some scheduled processes. I was
hopeing that I could run a command thru a batch(.bat
or .cmd) file to restart these systems. But I for the life
of me I can not find a dos command that restarts windows.
I use iisrestart /reboot to restart works on my iis
Servers but no idea about how to accomplish a reboot from
command prompt on a windows 2000 workstation. Thank you
for your help.
Glenn

PsShutdown freeware at tip 4086 in the 'Tips & Tricks' at http://www.jsiinc.com

Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
 
D

Dave Patrick

Or schedule this VBScript.

Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate,(Shutdown)}!\\.\root\cimv2")
Set colOperatingSystems = objWMIService.ExecQuery _
("Select * from Win32_OperatingSystem")
For Each objOperatingSystem in colOperatingSystems
ObjOperatingSystem.Reboot()
Next
 
V

Vince C.

Hi, Glenn.

If you have Windows XP workstations, you can use the "shutdown" command. It
also works when copied on a W2K machine, if I'm right. It also has a nice
GUI when run with the -i argument. The only thing is W2K machines do not
seem to power off with this command. But you're not concerned since you want
to do a reboot.

Vince C.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top