Is there any methods to auto shutdown Windows Server 2003 at a specific time ??
What are the steps ??
Thanks.
Is there any methods to auto shutdown Windows Server 2003 at a specific time ??
What are the steps ??
Thanks.
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()}"
"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.
"Chan" wrote:
> Is there any methods to auto shutdown Windows Server 2003 at a specific time ??
> What are the steps ??
>
> Thanks.
>
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.
>
>
>
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.
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.
> >
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.
> > >
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:
Which will cause the workstation to shutdown at midnight every day.Code:schtasks /create /RU System /SC DAILY /TN shutdown /TR "shutdown.exe -s -f -t 60" /ST 00:00:00
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.
Bookmarks