automatic shutdown

G

Guest

I try to schedule my desktop shut down automatically. However, it does not
shut down completely. at sheduled time it just log off and computer stay at
login mode with user and password screen without shutting down.
Anyone know why? thanks.
 
B

Bob I

Perhaps you are not using correct command parameters

at command prompt issue

shutdown /?

for instructions.
 
R

Rock

Qnguyen said:
I try to schedule my desktop shut down automatically. However, it does not
shut down completely. at sheduled time it just log off and computer stay at
login mode with user and password screen without shutting down.
Anyone know why? thanks.

It would help if you gave some specific info on how you're trying to do
this.
 
U

Unk

I try to schedule my desktop shut down automatically. However, it does not
shut down completely. at sheduled time it just log off and computer stay at
login mode with user and password screen without shutting down.
Anyone know why? thanks.

Usage: shutdown [-i | -l | -s | -r | -a] [-f] [-m \\computername] [-t xx] [-c "comment"] [-d
up:xx:yy]

No args Display this message (same as -?)
-i Display GUI interface, must be the first option
-l Log off (cannot be used with -m option)
-s Shutdown the computer
-r Shutdown and restart the computer
-a Abort a system shutdown
-m \\computername Remote computer to shutdown/restart/abort
-t xx Set timeout for shutdown to xx seconds
-c "comment" Shutdown comment (maximum of 127 characters)
-f Forces running applications to close without warning
-d [p]:xx:yy The reason code for the shutdown
u is the user code
p is a planned shutdown code
xx is the major reason code (positive integer less than 256)
yy is the minor reason code (positive integer less than 65536)


Use a batch file and run it from your task scheduler.


@ECHO OFF
%SystemRoot%\System32\Shutdown.exe -s -f -t 00
CLS
EXIT
 
W

Wesley Vogel

Use Task Scheduler to schedule the computer to shut down at a
specific time.

To do so, follow these steps:

01. Create a shortcut to %windir%\System32\shutdown.exe -s -t 00.
02. Click Start, and then click Control Panel.
03. Click Performance and Maintenance, and then click Scheduled Tasks.
04. Double-click Add Scheduled Task. The Scheduled Task Wizard starts.
05. Click Next.
06. Under Click the program you want Windows to run, click Browse.
07. In the Select Program to Schedule dialog box, locate the
shortcut that you created, click it, and then click Open.
08. Under Perform this task, specify a name for the task and how frequently
you want this task to run, and then click Next.
09. Under Select the time and day you want this task to start, specify a
start time and date for the task, and then click Next.
10. Type the user name and password to run this task under, and then click
Next.
11. Click to select the Open advanced properties for this task when I click
Finish check box, and then click Finish.
12. Click the Task tab.
13. In the Run box, change it to read:
%windir%\System32\shutdown.exe -s -t 00
Change the Start in box to read:
%windir%
14. Click Apply.
15. Click OK.

NOTE: For exact parameters for shutdown.exe, open cmd and type
shutdown.exe /?

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 

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

Similar Threads


Top