Using shutdown.exe

G

Guest

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?
 
D

David H. Lipman

From: "Candace" <[email protected]>

| 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.
 
U

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?
 
D

David H. Lipman

From: "Uncle John" <[email protected]>

| 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.
 
T

Torgeir Bakken \(MVP\)

Candace said:
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
 
N

Nepatsfan

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.
 

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