Results 1 to 9 of 9

Thread: Auto shutdown Windows Server 2003

  1. #1
    Chan Guest

    Auto shutdown Windows Server 2003

    Is there any methods to auto shutdown Windows Server 2003 at a specific time ??
    What are the steps ??

    Thanks.


  2. #2
    Kuma Guest

    Re: Auto shutdown Windows Server 2003

    http://www.microsoft.com/technet/scr....mspx?mfr=true
    go here and click startup and shutdown for a vbscript solution. Add it
    to a scheduled task to run at a certain time.


    in Powershell
    Drop this into a .bat all on one line and schedule it.
    powershell -noexit -nologo -noprofile -command "& {(Get-WMIObject -
    Computername "COMPUTER" WIN32_OperatingSystem | Where-Object
    {$_.Primary}).Shutdown()}"


  3. #3
    Pegasus \(MVP\) Guest

    Re: Auto shutdown Windows Server 2003


    "Chan" <Chan@discussions.microsoft.com> wrote in message
    news:DB6C0788-4962-4A5A-91F3-1A65B3632DF6@microsoft.com...
    > Is there any methods to auto shutdown Windows Server 2003 at a specific
    > time ??
    > What are the steps ??
    >
    > Thanks.
    >


    Use the Task Scheduler to run shutdown.exe at the required time.



  4. #4
    auto shutdown Guest

    RE: Auto shutdown Windows Server 2003



    "Chan" wrote:

    > Is there any methods to auto shutdown Windows Server 2003 at a specific time ??
    > What are the steps ??
    >
    > Thanks.
    >


  5. #5
    auto shutdown Guest

    Re: Auto shutdown Windows Server 2003

    i have scheduled but not shutdown

    "Pegasus (MVP)" wrote:

    >
    > "Chan" <Chan@discussions.microsoft.com> wrote in message
    > news:DB6C0788-4962-4A5A-91F3-1A65B3632DF6@microsoft.com...
    > > Is there any methods to auto shutdown Windows Server 2003 at a specific
    > > time ??
    > > What are the steps ??
    > >
    > > Thanks.
    > >

    >
    > Use the Task Scheduler to run shutdown.exe at the required time.
    >
    >
    >


  6. #6
    Lanwench [MVP - Exchange] Guest

    Re: Auto shutdown Windows Server 2003

    auto shutdown <autoshutdown@discussions.microsoft.com> wrote:
    > i have scheduled but not shutdown


    More info needed. Did you set up the scheduled task to run as an admin?
    Event logs give you any clue? Can you manually run the scheduled task?

    >
    > "Pegasus (MVP)" wrote:
    >
    >>
    >> "Chan" <Chan@discussions.microsoft.com> wrote in message
    >> news:DB6C0788-4962-4A5A-91F3-1A65B3632DF6@microsoft.com...
    >>> Is there any methods to auto shutdown Windows Server 2003 at a
    >>> specific time ??
    >>> What are the steps ??
    >>>
    >>> Thanks.
    >>>

    >>
    >> Use the Task Scheduler to run shutdown.exe at the required time.





  7. #7
    MMG2 Guest

    RE: Auto shutdown Windows Server 2003

    Does anyone know if this can be done for an entire network? I have created a
    batch file that I am able to use to shut down ONE PC but I would like 800
    PC's on my network to all automatically shutdown at a certain time.

    "auto shutdown" wrote:

    >
    >
    > "Chan" wrote:
    >
    > > Is there any methods to auto shutdown Windows Server 2003 at a specific time ??
    > > What are the steps ??
    > >
    > > Thanks.
    > >


  8. #8
    David Hoelzer Guest

    Re: Auto shutdown Windows Server 2003

    You could use a "dsquery computers" to pull all of your computer names
    from the Active Directory and then loop through that with something like:

    FOR /F "skip=1"...

    Just make sure to tweak your DSQuery so that you're getting the
    computers that you really want to target.

    --------------------------------------------
    David Hoelzer
    Director of Research, Enclave Forensics
    http://www.enclaveforensics.com
    Incident & Security Response Services

    In article <D9377677-7FD9-4E95-881F-AA508B90E84C@microsoft.com>,
    MMG2 <MMG2@discussions.microsoft.com> wrote:

    > Does anyone know if this can be done for an entire network? I have created a
    > batch file that I am able to use to shut down ONE PC but I would like 800
    > PC's on my network to all automatically shutdown at a certain time.
    >
    > "auto shutdown" wrote:
    >
    > >
    > >
    > > "Chan" wrote:
    > >
    > > > Is there any methods to auto shutdown Windows Server 2003 at a specific
    > > > time ??
    > > > What are the steps ??
    > > >
    > > > Thanks.
    > > >


  9. #9
    Join Date
    Feb 2009
    Posts
    8

    Re: Auto shutdown Windows Server 2003

    That approach, querying the computers and shutting them down on the fly is problematic if you want them to actually shutdown at the same time, as the script would take quite a while to connect to each of the 800 computers and shut them down.

    I would recommend an augmented approach where you use some kind of script (either login/startup, psexec, or vbscript) to run the following command with on each workstation once:

    Code:
    schtasks /create /RU System /SC DAILY /TN shutdown /TR "shutdown.exe -s -f -t 60" /ST 00:00:00
    Which will cause the workstation to shutdown at midnight every day.

    Note the -f switch which will not allow applications to gracefully close. Unpleasant, but necessary if you really want to make sure you don't end up in a dead lock scenario.

Similar Threads

  1. windows 2003 server shutdown and reboot automatically.
    By Prashant in forum Windows Server Help
    Replies: 3
    Last Post: 09-01-2014, 01:39 PM
  2. Server 2003 Unexpected Shutdown
    By imnotorginal in forum Operating Systems
    Replies: 1
    Last Post: 10-05-2010, 11:54 PM
  3. Replies: 2
    Last Post: 06-07-2009, 06:51 PM
  4. How to disable auto restart of Windows server 2003
    By Edwards in forum Operating Systems
    Replies: 2
    Last Post: 26-05-2009, 09:48 PM
  5. Windows 2003 Server Unexpected Shutdown
    By jlm in forum Windows Server Help
    Replies: 4
    Last Post: 01-03-2007, 02:57 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,575,671.90037 seconds with 17 queries