automatically shutting down using the command line
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?
Re: automatically shutting down using the command line
"michael" <michael@discussions.microsoft.com> wrote in message
news:66546D79-CBFB-4987-9B3D-6663DF35BE99@microsoft.com...
>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
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.
Re: automatically shutting down using the command line
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
"Nepatsfan" wrote:
> "michael" <michael@discussions.microsoft.com> wrote in message
> news:66546D79-CBFB-4987-9B3D-6663DF35BE99@microsoft.com...
> >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
>
>
>
>
Re: automatically shutting down using the command line
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.
"michael" <michael@discussions.microsoft.com> wrote in message
news:1EC2E8CC-28EB-4826-BFD6-309057EE06B4@microsoft.com...
> 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
>
> "Nepatsfan" wrote:
>
>> "michael" <michael@discussions.microsoft.com> wrote in message
>> news:66546D79-CBFB-4987-9B3D-6663DF35BE99@microsoft.com...
>> >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
>>
>>
>>
>>