Go Back   TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Auto shutdown Windows Server 2003

Windows Server Help


Reply
 
Thread Tools Search this Thread
  #1  
Old 26-07-2008
Chan
 
Posts: n/a
Auto shutdown Windows Server 2003

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

Thanks.


Reply With Quote
  #2  
Old 26-07-2008
Kuma
 
Posts: n/a
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()}"

Reply With Quote
  #3  
Old 26-07-2008
Pegasus \(MVP\)
 
Posts: n/a
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.


Reply With Quote
  #4  
Old 17-11-2008
auto shutdown
 
Posts: n/a
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.
>

Reply With Quote
  #5  
Old 17-11-2008
auto shutdown
 
Posts: n/a
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.
>
>
>

Reply With Quote
  #6  
Old 17-11-2008
Lanwench [MVP - Exchange]
 
Posts: n/a
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.




Reply With Quote
  #7  
Old 19-12-2008
MMG2
 
Posts: n/a
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.
> >

Reply With Quote
  #8  
Old 19-12-2008
David Hoelzer
 
Posts: n/a
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.
> > >

Reply With Quote
  #9  
Old 03-02-2009
Member
 
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.
Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Auto shutdown Windows Server 2003"
Thread Thread Starter Forum Replies Last Post
windows 2003 server shutdown and reboot automatically. Prashant Windows Server Help 3 09-01-2014 01:39 PM
Server 2003 Unexpected Shutdown imnotorginal Operating Systems 1 10-05-2010 11:54 PM
Remove or Disable shutdown event tracker in Windows Server 2003 and XP TheGreatOne Tips & Tweaks 2 06-07-2009 06:51 PM
How to disable auto restart of Windows server 2003 Edwards Operating Systems 2 26-05-2009 09:48 PM
Windows 2003 Server Unexpected Shutdown jlm Windows Server Help 4 01-03-2007 02:57 PM


All times are GMT +5.5. The time now is 09:58 AM.