Auto Shutdown

J

John

WinXP SP3 + the latest patches up to March 2009
PC is member of Windows Server 2003 AD domain

Here's what I did at around 3:59 pm:

1. Logon as MachineName\Administrator

2. Create a scheduled task to shutdown my PC
* Run: C:\WINDOWS\system32\shutdown.exe -f
* Run As: MachineName\Administrator
* Run only Once at 4:05 pm
3. Logoff

I then logon to the PC as user DomainName\John. Open Outlook 2007. Wait
until clock hits 4:05 pm to see my scheduled task kicks in to shutdown my
PC.

Nope... nothing happens. PC stays on.

What am I missing?
 
I

Ian D

John said:
WinXP SP3 + the latest patches up to March 2009
PC is member of Windows Server 2003 AD domain

Here's what I did at around 3:59 pm:

1. Logon as MachineName\Administrator

2. Create a scheduled task to shutdown my PC
* Run: C:\WINDOWS\system32\shutdown.exe -f
* Run As: MachineName\Administrator
* Run only Once at 4:05 pm
3. Logoff

I then logon to the PC as user DomainName\John. Open Outlook 2007. Wait
until clock hits 4:05 pm to see my scheduled task kicks in to shutdown my
PC.

Nope... nothing happens. PC stays on.

What am I missing?

Try this: path...\shutdown -s -t 2 -f

You need -s to make it shut down. The "-t 2" forces it
to shutdown in 2 seconds after open tasks are closed.

Actually all you need to do is make a batch file
named Shutdown.bat and containing the following:

@echo off
shutdown -s -t 2 -f

Make Shutdown.bat a scheduled task, and you're good
to go. You don't need the path as \system32 is in the
default XP path.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top