PDA

View Full Version : Using shutdown.exe


Candace
March 8th 05, 06:13 PM
The shutdown.exe utility is not working. I attempted to use it according to
KB article #317371 (http://support.microsoft.com/?kbid=317371), setting up a
Scheduled Task to run it with the /r and /t switches, but nothing happens
when it runs. I even located the file in c:\windows\system32 directory and
double-clicked it, and still nothing happened. I read another article that
said the utility malfunctions if the computer is "locked", but this is not
the case here. What would prevent this utility from functioning?

David H. Lipman
March 8th 05, 06:25 PM
From: "Candace" >

| The shutdown.exe utility is not working. I attempted to use it according to
| KB article #317371 (http://support.microsoft.com/?kbid=317371), setting up a
| Scheduled Task to run it with the /r and /t switches, but nothing happens
| when it runs. I even located the file in c:\windows\system32 directory and
| double-clicked it, and still nothing happened. I read another article that
| said the utility malfunctions if the computer is "locked", but this is not
| the case here. What would prevent this utility from functioning?


You have to supply the sceduled task job an account with sufficient rights to shutown the
platform and a password. The password is required.


--
Dave

Uncle John
March 8th 05, 06:28 PM
Candace,

That is out of the Windows NT\2000 resource kit. Are you sure that i is
expected to work in Windows XP?

--
Uncle John

David H. Lipman
March 8th 05, 06:34 PM
From: "Uncle John" >

| Candace,
|
| That is out of the Windows NT\2000 resource kit. Are you sure that i is
| expected to work in Windows XP?
|
| --
| Uncle John
|

SHUTDOWN is now a stock component of WinXP and Win2003 Server.
But it was a Resource Kit Utility for NT4 and Win2K.

--
Dave

Torgeir Bakken \(MVP\)
March 8th 05, 07:13 PM
Candace wrote:

> The shutdown.exe utility is not working. I attempted to use it according to
> KB article #317371 (http://support.microsoft.com/?kbid=317371), setting up a
> Scheduled Task to run it with the /r and /t switches, but nothing happens
> when it runs. I even located the file in c:\windows\system32 directory and
> double-clicked it, and still nothing happened. I read another article that
> said the utility malfunctions if the computer is "locked", but this is not
> the case here. What would prevent this utility from functioning?
Hi

See if Psshutdown.exe in SysInternals's free PSTools suite works
better for you:

http://www.sysinternals.com


--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx

Nepatsfan
March 8th 05, 08:20 PM
Instead of using /r and /t use -r and -t (with a space between t
and the number of seconds you want the shutdown to be delayed).
You also have to use an account that has a password (not a blank
one) to run this task.

Try the following:
Create your scheduled task using an account with a password and
when you come to the last page put a check mark in the box that
says "Open advanced properties for this task when I click
Finish". Click Finish.
On the Task page find the Run line.
Add your switches here.
The line should end up looking something like this:
C:\WINDOWS\system32\shutdown.exe -r -t XX where XX is the amount
of time you want to delay the shutdown.
Click OK and enter your password and click OK.

Keep in mind that you any shutdown can be cancelled by running
shutdown -a.


--
Nepatsfan
"Candace" > wrote in message
...
> The shutdown.exe utility is not working. I attempted to use it
> according to
> KB article #317371 (http://support.microsoft.com/?kbid=317371),
> setting up a
> Scheduled Task to run it with the /r and /t switches, but
> nothing happens
> when it runs. I even located the file in c:\windows\system32
> directory and
> double-clicked it, and still nothing happened. I read another
> article that
> said the utility malfunctions if the computer is "locked", but
> this is not
> the case here. What would prevent this utility from
> functioning?

Google