Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Auto shutdown Windows Server 2003

91 views
Skip to first unread message

Chan

unread,
Jul 25, 2008, 10:46:00 PM7/25/08
to
Is there any methods to auto shutdown Windows Server 2003 at a specific time ??
What are the steps ??

Thanks.

Kuma

unread,
Jul 25, 2008, 11:22:33 PM7/25/08
to
http://www.microsoft.com/technet/scriptcenter/scripts/desktop/default.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()}"

Pegasus (MVP)

unread,
Jul 26, 2008, 4:02:30 AM7/26/08
to

"Chan" <Ch...@discussions.microsoft.com> wrote in message
news:DB6C0788-4962-4A5A...@microsoft.com...

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


shutdown@discussions.microsoft.com auto shutdown

unread,
Nov 17, 2008, 6:25:01 AM11/17/08
to

auto shutdown

unread,
Nov 17, 2008, 6:29:00 AM11/17/08
to
i have scheduled but not shutdown

Lanwench [MVP - Exchange]

unread,
Nov 17, 2008, 1:00:16 PM11/17/08
to
auto shutdown <autosh...@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?

MMG2

unread,
Dec 18, 2008, 2:26:02 PM12/18/08
to
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.

David Hoelzer

unread,
Dec 19, 2008, 11:21:31 AM12/19/08
to
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...@microsoft.com>,

0 new messages