Auto Shutdown

  • Thread starter Thread starter John
  • Start date Start date
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?
 
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.
 
Back
Top