#170508 - 2006-11-20 11:03 PM
shut it down SHUT IT ALL DOWN!!
|
Bryce
KiX Supporter
   
Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
|
I got the strangest request today... shutdown the entire domain!
Run this script at your own RISK!!!
Code:
break on $domain = getobject('WinNT://' + @domain) $domain.filter = 'computer',''
For each $computer in $domain if $computer.name <> @wksta shell '%comspec% /c ping -n 1 ' + $computer.name + ' | find /i "ttl" > nul' if not @error $ = SHUTDOWN ($computer.name, "system shutdown", 1,1,0) endif endif next $ = shutdown(@wksta,'system shutdown',1,1,0)
|
|
Top
|
|
|
|
#170514 - 2006-11-21 07:52 AM
Re: shut it down SHUT IT ALL DOWN!!
|
Lonkero
KiX Master Guru
   
Registered: 2001-06-05
Posts: 22346
Loc: OK
|
yeah, happy b-day 
thinking about it, the servers should have power configuration set to shutdown when battery mode has been on for so long time. I know, it never works perfectly, but you could try setting that on all ups aware servers.
|
|
Top
|
|
|
|
#170516 - 2006-11-22 11:26 PM
Re: shut it down SHUT IT ALL DOWN!!
|
masken
MM club member
   
Registered: 2000-11-27
Posts: 1222
Loc: Gothenburg, Sweden
|
the Power in pressing Enter hehe...
|
|
Top
|
|
|
|
#170517 - 2006-11-23 09:14 AM
Re: shut it down SHUT IT ALL DOWN!!
|
Björn
Korg Regular
   
Registered: 2005-12-07
Posts: 953
Loc: Stockholm, Sweden.
|
Now, that's something that should be fun to have someone else test if it works
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 1636 anonymous users online.
|
|
|