#120180 - 2004-05-26 05:08 PM
Shutdown script
|
wizard79
Getting the hang of it
Registered: 2003-03-26
Posts: 64
Loc: Australia.
|
Hi all,
Does anyone use a shutdown script somehow?
What I want is:
Send a net message across network at 6pm saying all computers will shutdown in the next few minutes. The user can click NO if they dont want to shutdown the pc otherwise it will shutdown.
Anyone heard of something like this?
|
|
Top
|
|
|
|
#120187 - 2004-05-27 10:46 AM
Re: Shutdown script
|
Wokkeltje
Fresh Scripter
Registered: 2002-08-12
Posts: 31
Loc: Torhout, Belgium
|
Code:
If @PRODUCTTYPE = "Windows NT Workstation" $ = Shutdown("","Laatste kans om je werk op te slaan, het afsluiten kan niet meer onderbroken worden.",60,True,0) Else $ = Shutdown("","Laatste kans om je werk op te slaan, het afsluiten kan niet meer onderbroken worden.",60,True,2) EndIf
Here is the code that I use.
|
|
Top
|
|
|
|
#120192 - 2004-06-01 12:49 PM
Re: Shutdown script
|
Wokkeltje
Fresh Scripter
Registered: 2002-08-12
Posts: 31
Loc: Torhout, Belgium
|
I got my problem solved with a freeware program. I does everything, it has a GUI or you can use command line
PowerOff 3.0.1.3
|
|
Top
|
|
|
|
#120193 - 2004-06-01 04:02 PM
Re: Shutdown script
|
wizard79
Getting the hang of it
Registered: 2003-03-26
Posts: 64
Loc: Australia.
|
thanks guys - you are legends!
|
|
Top
|
|
|
|
#120194 - 2004-06-03 12:52 AM
Re: Shutdown script
|
rvdmast
Fresh Scripter
Registered: 2003-07-01
Posts: 15
|
XP wont shutdown when the PC is locked, this is by design. you could try if the /f (force) option of the shutdown utility helps.
|
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 302 anonymous users online.
|
|
|