Overclockers Australia Forums

OCAU News - Wiki - QuickLinks - Pix - Sponsors  

Go Back   Overclockers Australia Forums > General Topics > Newbie Lounge

Notices


Sign up for a free OCAU account and this ad will go away!
Search our forums with Google:
Reply
 
Thread Tools
Old 20th May 2012, 11:22 AM   #1
Electric Thread Starter
Member
 
Electric's Avatar
 
Join Date: Dec 2003
Location: Sydney
Posts: 872
Default Shut down PC at certain time

I am running a Windows 7 64bit PC and after searching for how to get it to shut down automatically at a certain time every day, I came across this on the Microsoft forums:

Quote:
If using Windows 7, follow these steps to schedule your PC(Personal Computer) to shut down at a certain time at night:

1. Go to Start > Control Panel > System and Security > Administrative Tools and click on the Task Scheduler.

2. From the Action menu in Task Scheduler, click "Create Basic Task..."

3. In the "Create Basic Task Wizard" windows that pops up, Type in a title and a description. Something basic like "PC Shutdown."

4. Click "Next."

5. On the "Task Trigger" screen, choose the frequency with which you want the Shutdown PC to run. For nightly shutdown, click on "daily" and click the Next" button.

6.On the "Daily" screen, enter the date and time you want your PC to shutdown. Click "Next."

7. On the "Action" screen, choose "Start a program" and click "Next."

8. On the "Start a Program" screen, type C:\Windows\System32\shutdown.exe in the "Program/script" text field.

9. In the Add arguments text field type /s.

10. Click "Next."

11. Confirm your settings on the Summary screen and click "Finish."

Now your Windows 7 computer will automatically shutdown at the same time every day/night.

This is not working. From what I can see the file that it points to might be wrong. As when I run the shutdown.exe in the System32 folder manually it does not shut down the PC.

Is there a different file I could point it to that will make this work?
Electric is offline   Reply With Quote

Join OCAU to remove this ad!
Old 20th May 2012, 11:28 AM   #2
HUMMER
Member
 
HUMMER's Avatar
 
Join Date: Dec 2002
Location: sydney
Posts: 8,932
Default

you can start to see if there is a shutdown.exe in the system32 folder.
__________________
Originally Posted by Randy_Chuggs - I just get down on all fours and suck it out

Originally Posted by Subcommandante - Who are DVDA? Just a bunch of guys hanging out and having fun...

Originally Posted by Agg - You seem to be confusing OCAU with some kind of democracy.

Originally Posted by Spyfox - mount it on the rear like a brokeback cowboy
HUMMER is offline   Reply With Quote
Old 20th May 2012, 11:30 AM   #3
mareke
Member
 
Join Date: Jun 2003
Location: Sydney, NSW
Posts: 3,538
Default

I use a program called Switch Off which does it. I'm not sure it will work with Windows 7 64 bit.

http://www.tucows.com/preview/246415
mareke is offline   Reply With Quote
Old 20th May 2012, 11:37 AM   #4
Foxster
Member
 
Foxster's Avatar
 
Join Date: May 2002
Posts: 417
Default

Did you put /s in the argument field in step 9? If you run shutdown without any arguments then it won't shut the PC down so maybe this is your problem?
__________________
- Foxster -

Folding@home V2 500 Club Member - Folding@home V2 17500 Points Milestone

www.switch1197.com
Foxster is offline   Reply With Quote
Old 20th May 2012, 4:56 PM   #5
Electric Thread Starter
Member
 
Electric's Avatar
 
Join Date: Dec 2003
Location: Sydney
Posts: 872
Default

Quote:
Originally Posted by HUMMER View Post
you can start to see if there is a shutdown.exe in the system32 folder.
Quote:
Originally Posted by Electric
From what I can see the file that it points to might be wrong. As when I run the shutdown.exe in the System32 folder manually it does not shut down the PC.
The file is in the folder. If I go to the file in explorer and run it nothing happens.


Quote:
Originally Posted by Foxster View Post
Did you put /s in the argument field in step 9? If you run shutdown without any arguments then it won't shut the PC down so maybe this is your problem?
When I set it up looks like I skimmed over Step 9 without even taking notice of it. Have put the argument in now and will see if that fixes the problems. Thanks for the tip.
Electric is offline   Reply With Quote
Old 20th May 2012, 5:18 PM   #6
yanman
Member
 
yanman's Avatar
 
Join Date: Jun 2002
Location: Hobart
Posts: 5,747
Default

I just used the AT command

Type at /? In a cmd line session and it's pretty easy. Can't remember if I used a bat file to set it after each start up
yanman is offline   Reply With Quote
Old 22nd May 2012, 12:51 PM   #7
Electric Thread Starter
Member
 
Electric's Avatar
 
Join Date: Dec 2003
Location: Sydney
Posts: 872
Default

Not sure what you mean yanman.


But I have got it working. Seems I just forgot to put in the /s argument. Works great now
Electric is offline   Reply With Quote
Old 22nd May 2012, 1:00 PM   #8
yanman
Member
 
yanman's Avatar
 
Join Date: Jun 2002
Location: Hobart
Posts: 5,747
Default

Quote:
Originally Posted by Electric View Post
Not sure what you mean yanman.


But I have got it working. Seems I just forgot to put in the /s argument. Works great now
So something like this:
Code:
C:\Users\xxx>at 22:00 /every:M,T,W,Th,F,S,Su shutdown -s -t 0
Added a new job with job ID = 1

C:\Users\xxx>at
Status ID   Day                     Time          Command Line
-------------------------------------------------------------------------------
        1   Each M T W Th F S Su    10:00 PM      shutdown -s -t 0
Except last time I did it I didn't use the every day part. I created a batch file with just:
Code:
at 22:00 shutdown -s -t 0
then put the batch file in the startup folder.

Then I modified the BIOS settings to wake the machine up at a certain time
yanman is offline   Reply With Quote
Old 20th June 2012, 10:10 AM   #9
JolyV
Member
 
JolyV's Avatar
 
Join Date: May 2012
Posts: 315
Default

Auto POwer On
JolyV is offline   Reply With Quote
Old 20th June 2012, 5:44 PM   #10
Frog
Member
 
Join Date: Jan 2002
Posts: 81
Default

I use task scheduler on win7 to shut down
In general tab make sure highest privileges is checked
use C:\Windows\System32\shutdown.exe

program/script /s /f
works for me
Frog is online now   Reply With Quote
Reply

Bookmarks

Sign up for a free OCAU account and this ad will go away!

Thread Tools

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

Forum Jump


All times are GMT +10. The time now is 7:52 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. -
OCAU is not responsible for the content of individual messages posted by others.
Other content copyright Overclockers Australia.
OCAU is hosted by Internode!