Re: scheduled shut down of PC's on network
- From: Meinolf Weber <meiweb(nospam)@gmx.de>
- Date: Thu, 16 Oct 2008 17:09:59 +0000 (UTC)
Hello bstuart177@xxxxxxxxxxxxxx,
This one is for restart the machine at 5AM, if you change "/r" to "/s" it will shutdown:
-----------------------------------------------------------------------------------------
;Create the scheduled task on remote workstation's
if not exist c:\winnt\tasks\at1.job at 05:00 /every:m,t,w,th,f,s,su shutdown.exe /r /t 120 /c "This computer will restart automatically, please close your open applications. Your Administrator." /f
:Copy the shutdown.exe to remote workstation
if not exist c:\WINNT\system32\shutdown.exe copy "\\domainname\netlogon\shutdown.exe" "c:\WINNT\system32\shutdown.exe"
-----------------------------------------------------------------------------------------
All between the lines copy to "shutdown.cmd" for example and add "shutdown.cmd" as a startup script to a GPO. The GPO link to the OU where your computers are located.
Best regards
Meinolf Weber
Disclaimer: This posting is provided "AS IS" with no warranties, and confers no rights.
** Please do NOT email, only reply to Newsgroups
** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
Hi Meinolf ,
Have you a location of where you obtained this script or did you
create from scratch?
Thanks,
Brian.
.
- Follow-Ups:
- Re: scheduled shut down of PC's on network
- From: bstuart177
- Re: scheduled shut down of PC's on network
- References:
- Re: scheduled shut down of PC's on network
- From: bstuart177
- Re: scheduled shut down of PC's on network
- Prev by Date: Re: scheduled shut down of PC's on network
- Next by Date: Politics
- Previous by thread: Re: scheduled shut down of PC's on network
- Next by thread: Re: scheduled shut down of PC's on network
- Index(es):
Relevant Pages
|