Re: Scheduled Shutdown with GP



Using the /l command with shutdown will only log the user out, not shut down
the computer.
To shutdown a computer using the shutdown command, /s is required with /f to
force any programs that refuse to close to exit.

/t 0 will shut it down immediately, although you could set this to 30 to 60
to allow users to save.

Try configuring the scheduled task at 430 under an admin account.

Then use

shutdown /s /f /t 0 /c "Shutdown @ 430"

either that - or you could configure a batch script to run on a server as a
scheduled task, assuming that computer has an account that can access the
computers with adminstrative rights.

shutdown /s /f /m \\computername-1 /t 0 /c "Remote Shutdown @ 430"
shutdown /s /f /m \\computername-2 /t 0 /c "Remote Shutdown @ 430"

<v8killah03@xxxxxxxxx> wrote in message
news:1152541067.472735.251130@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,

I've created a batch file with the following commands:

AT 4:30 shutdown /l /y /c

It will schedule the task, but nothing happens at the time that the
computer is supposed to shut down.


Any ideas?


Thanks again.


.



Relevant Pages

  • Re: remote Shutdown Command
    ... The flavour you use is different again from the three flavours I previously ... Where does the command reside? ... Instead of just running shutdown, ... \\Computer Specifies a remote computer to shutdown. ...
    (microsoft.public.win2000.general)
  • RE: packaged received but didnt run
    ... first you need to make sure your package is set to run whether someone is ... Run the shutdown command as an admin so it will have command over everything. ... timeout period.If this switch is used, ...
    (microsoft.public.sms.swdist)
  • Re: Logoff on idle with lock already active
    ... scheduled task, but I'm not sure it will work for all user on the ... I could imagine that using the built-in Windows "shutdown" command with the /c switch could work for you as well. ... You can schedule the shutdown using Group Policy Scripts and the AT command: ...
    (microsoft.public.windows.server.active_directory)
  • Re: Scheduled task
    ... 'shutdown -s' will shutdown your local system in 30 seconds, ... create a scheduled task to run that command, ...
    (microsoft.public.windowsxp.general)
  • Re: Shutdown remote server
    ... it will tell you how to remotely shutdown another NT based ... >> How can I do a clean shut down of a remote server with VBScript? ... > PsShutdown.exe in the free PsTools suite (command line) ... > torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway ...
    (microsoft.public.scripting.vbscript)