PC Review


Reply
Thread Tools Rate Thread

automatically shutting down using the command line

 
 
michael
Guest
Posts: n/a
 
      13th May 2008
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
 
Reply With Quote
 
 
 
 
Nepatsfan
Guest
Posts: n/a
 
      13th May 2008
"michael" <(E-Mail Removed)> wrote in message
news:66546D79-CBFB-4987-9B3D-(E-Mail Removed)...
>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



 
Reply With Quote
 
michael
Guest
Posts: n/a
 
      13th May 2008
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" <(E-Mail Removed)> wrote in message
> news:66546D79-CBFB-4987-9B3D-(E-Mail Removed)...
> >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
>
>
>
>

 
Reply With Quote
 
Nepatsfan
Guest
Posts: n/a
 
      13th May 2008
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

"michael" <(E-Mail Removed)> wrote in message
news:1EC2E8CC-28EB-4826-BFD6-(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
>> news:66546D79-CBFB-4987-9B3D-(E-Mail Removed)...
>> >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
>>
>>
>>
>>




 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
hibernate automatically using command line michael Windows XP Basics 2 17th May 2008 03:26 PM
How can I setup a command line or something to automatically repai Marco Microsoft Access 3 15th Feb 2008 08:15 PM
Shutting down COM app from a command line Larry Bud Microsoft ASP .NET 4 31st Jul 2007 09:24 PM
how to create automatically a DLL using a Command line =?Utf-8?B?QnJ1Y2UgT25l?= Microsoft Dot NET 1 18th Jul 2006 09:38 PM
automatically update kaspersky from command line Muab Ila Anti-Virus 0 26th Aug 2003 07:43 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:29 PM.