HTFC Forums

H.T.F.C.

How To Fix Computers





Go Back   HTFC Forums > Software Newsgroups > Windows XP > Windows XP Basics

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1  
Old 05-13-2008, 06:49 PM
michael
 
Posts: n/a
Default 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?


mike
Reply With Quote
Sponsored Links
Fix your Windows Problems - FAST.
FREE Safe Scan Registry Check. Locate & Fix Errors in Minutes!
  #2  
Old 05-13-2008, 07:11 PM
Nepatsfan
 
Posts: n/a
Default 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



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
  #3  
Old 05-13-2008, 08:04 PM
michael
 
Posts: n/a
Default 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
>
>
>
>

Reply With Quote
  #4  
Old 05-13-2008, 09:02 PM
Nepatsfan
 
Posts: n/a
Default 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.

"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" <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
>>
>>
>>
>>




Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reboot necessary after "Regsvr32" command ? Asking from command line if DLL already registered? Kevin Yu Windows XP 0 11-16-2007 09:36 AM
Command Line help in html jj@j.com Windows XP 10 08-13-2007 07:57 PM
help with command line Rob Windows XP 3 08-08-2007 09:09 PM
COMMAND LINE NET COMMAND? Jethro Windows XP 8 07-24-2007 04:13 PM
My Windows Vista Command Processor keeps shutting down invyzzybl Windows Vista 0 03-28-2007 07:47 AM


All times are GMT. The time now is 03:11 AM.


Powered by vBulletin® Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© 2004 - 2007 Web-S-Sense Pty. Ltd. Usenet and forums posts © their respective authors.
Ad Management by RedTyger