Re: Shutdown computers
- From: Joris van der Struijk <JorisvanderStruijk@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 27 Mar 2006 03:24:02 -0800
We are trying to implement the same sollution.
Wa also want to remotely and automaticaly shutdown our Windows XP computers
in our Windows 2003 Domain (all clients run WXP SP2).
I would realy like to use your sollution, but have no idea about VB
scripting. Do you have a working VBS sample that does the trick?
Grx,
Joris
"MoiToo" wrote:
Are the computers all using XP/2000/NT? If so, look at the.
shutdown.exe -s -f -t 120 -c "GET OFF YOU LAZY BUM" -m \\COMPUTERNAME
command, saved as a CMD.
Create a VBS, with a for/next loop reading all computer names from AD.
Launch (externally) the cmd file for each computer.
I would launch it externally, so that if a computer is slow, or unreachable
(off?), there is no wait time - you have almost simultaneously launched 500+
shutdown commands. Remember not to launch many more than 1500 at a time...
The exact answer you wanted is that WMI is not able to perform this task.
You could try using VB and read up on SE_SHUTDOWN_NAME_PRIVELAGE - but the
inbuilt shutdown command is much easier, and still clean.
"Hen_ro" <Hen_ro@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:3187AFE7-0FD0-4AB9-944E-628175DE5932@xxxxxxxxxxxxxxxx
I have a problem in our network with 500+ computsers studendts dont
shutdown
ther computers at the en off the day.
I have a script that shut downs the computer
strComputer = "."
Set objWMIService =
GetObject("winmgmts:{impersonationLevel=impersonate,(Shutdown)}\\" &
strComputer & "\root\cimv2")
Set colOperatingSystems = objWMIService.ExecQuery ("Select * from
Win32_OperatingSystem")
For Each objOperatingSystem in colOperatingSystems
objOperatingSystem.Win32Shutdown(1)
Next
now the next thing what i want is to use this with group policy manegment
to
give this with a startup script for every computer to shutdown a special
time
that i want and warns the students(a timer)that the computer is gonna
shutdown.
so even there is nobody behind that computer the computer will auto
shutdown
when i want.
is there a way to put a time or timer and a warning in this script??
hen_ro
- Prev by Date: IIS Logfile script
- Next by Date: Script: Remote shutdown of all domain computers
- Previous by thread: IIS Logfile script
- Next by thread: Script: Remote shutdown of all domain computers
- Index(es):
Relevant Pages
|