automatically shutting down using the command line

M

michael

I understand how to type: shutdown -s to automatically shutdown the
computer but my question is how to do this using windows scheduler? I can
get the scheduler to launch the command line utility but then how do I get it
to automatically enter my "shutdown -s" command?


mike
 
N

Nepatsfan

michael said:
I understand how to type: shutdown -s to automatically shutdown the
computer but my question is how to do this using windows scheduler? I can
get the scheduler to launch the command line utility but then how do I get it
to automatically enter my "shutdown -s" command?


mike


Take a look at this article.

Using Task Scheduler to schedule the computer to shut down and
restart at a specific time
http://www.winxptutor.com/schsd.htm

Also, here are instructions I passed along in response to a similar question.

Open Control Panel.
Double click on Scheduled Tasks.
In the Scheduled Tasks folder, double click on Add Scheduled Task.
When the Scheduled Task Wizard starts, hit the Next button.
After a short time you should see a box with a Browse button underneath it.
Click on the Browse button.
This should bring up "Select Program to Schedule".
Navigate to the C:\Windows\System32 folder.
Scroll through this folder till you locate shutdown.exe.
Click on shutdown.exe so that it's listed in the "File name" box.
Hit the Open button.
Back in the Scheduled Task Wizard, select an appropriate name for this task like
Shutdown.
Select Daily under "Perform this task".
Hit the Next button.
Enter the time you want the computer to shut down.
Hit the Next button.
Enter a user name and password.
Note: The account you use to run this task must have a non-blank password.
Hit Next.
On the next page, put a check mark in the box next to "Open advanced properties
for this task when I click Finish".
Hit the Finish button.
You should now see the properties sheet for the Shutdown task.
Click on the Task tab.
In the Run line, you should see the following:

C:\WINDOWS\system32\shutdown.exe

You need to add -s -t 00 to this entry. It should end up looking like this.

C:\WINDOWS\system32\shutdown.exe -s -t 00

Next, click on the Settings tab.
Put a check mark in the box next to "Wake the computer to run this task". That
way, if the computer is on standby, it will still be shut down.
Click OK.

Good luck

Nepatsfan
 
M

michael

Thanks, it works perfectly. I do have 1more question for you please. After
windows shuts down some computers completely shut off and some display "its
ok to shut your computer off". What is responsible for the difference? How
do I make any computer completely shut down?


Mike
 
N

Nepatsfan

The only times I've seen that shutdown screen is on older systems. Here's what I
did to get the system to shut down completely.

Go to Control Panel and double click "Power Options".
In "Power Options", look for a tab titled APM.
Click on the APM tab and put a check mark in the box next to
"Enable Advanced Power Management support".
Shut down your computer and see if you get the desired results.

If that doesn't fix the issue, you might want to take a look at this article.

"It is Now Safe to Turn Off Your Computer" error message when you try to shut
down your computer
http://support.microsoft.com/kb/810903/en-us

Nepatsfan
 

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