Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Automatic reboot task using Shutdown - will not fire

16 Feb 2016   #1
Vocalpoint

Windows 7 Professional SP1
 
 
Automatic reboot task using Shutdown - will not fire

Howdy,

I am trying to setup a simple Task Scheduler task to restart my HTPC every day at as specific time - but so far - no action on the task actually running.

I have the task setup correctly (I believe) it's calling:

C:\Windows\System32\shutdown.exe with the following arguments

–r –f –t 0

I have this set to run under the System account with highest privileges and it still will not fire. Cannot see anything in any logs anywhere.

Other items of note:

1. An instance of J.River Media Center is always running on the HTPC.
2. This PC has auto login using a local account MEDIA-PC\Username

What am I missing here?

VP


My System SpecsSystem Spec
.
16 Feb 2016   #2
UsernameIssues

W7 Pro SP1 64bit
 
 

Have you turned on History for all tasks?

If so, what does it state happened?
My System SpecsSystem Spec
16 Feb 2016   #3
Vocalpoint

Windows 7 Professional SP1
 
 

Quote   Quote: Originally Posted by UsernameIssues View Post
Have you turned on History for all tasks?

If so, what does it state happened?
Just turned it on..and set a run in the next minute. Will see what it says.

VP
My System SpecsSystem Spec
.

16 Feb 2016   #4
torchwood

W7 home premium 32bit/W7HP 64bit/w10 tp insider ring
 
 

just a thought
Do you need an argument depending on whether its in sleep or hibernation mode.

Roy
My System SpecsSystem Spec
16 Feb 2016   #5
paul1149

Linux Lite 2.8 x64 (full-featured, fast, rock-solid)
 
 

Without a password on the account, the Task setting ~run only when logged in~ becomes critical. Try toggling it from what it is. Sorry, I'm not on windows and can't be more specific.
My System SpecsSystem Spec
16 Feb 2016   #6
Vocalpoint

Windows 7 Professional SP1
 
 

Here's what the history has to say...

Task Scheduler successfully finished "{ea3f9488-eb63-42d2-b6cc-39d5a52b78e2}" instance of the "\Reboot HTPC" task for user "WORKGROUP\MEDIA-PC$".

But while this task was executing - I am logged onto the PC via Remote Desktop - and was not disconnected. No evidence of anything to indicate a restart has occurred.

The task fired and recorded it's steps but the PC is still up and never restarted.

What gives?

VP
My System SpecsSystem Spec
16 Feb 2016   #7
Vocalpoint

Windows 7 Professional SP1
 
 

Quote   Quote: Originally Posted by paul1149 View Post
Without a password on the account, the Task setting ~run only when logged in~ becomes critical. Try toggling it from what it is. Sorry, I'm not on windows and can't be more specific.

Had the SYSTEM acct running it and when that is selected all the other options like "run when logged in" are disabled.

Just set it back to my local account (as that's what is logged on) and checked the "only when user is logged on" option. See if that makes a difference.

VP
My System SpecsSystem Spec
16 Feb 2016   #8
Vocalpoint

Windows 7 Professional SP1
 
 

Just watched the task run and saw a quick little CMD box fly by - but no restart. This is bizarre.

VP
My System SpecsSystem Spec
16 Feb 2016   #9
DavidE

Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64
 
 

Quote   Quote: Originally Posted by Vocalpoint View Post
I have the task setup correctly (I believe) it's calling:

C:\Windows\System32\shutdown.exe with the following arguments

r f t 0
Try adding the -s (shutdown) parameter to your task.
My System SpecsSystem Spec
16 Feb 2016   #10
Vocalpoint

Windows 7 Professional SP1
 
 

Got it!

It was "slashes - not dashes". Doh!

Had to have my arguments set to:

/r /f /t 5

Instead of

–r –f –t 5

Watched it roll...display a message for 5 seconds and then a disconnect and restart!

Thanks guys.

Cheers!

VP
My System SpecsSystem Spec
Reply

 Automatic reboot task using Shutdown - will not fire




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Task bar in automatic hide
I maintain a computer with several user accounts all PW protected except one. The unprotected one is for the use of all. Somehow or somebody the task bar auto hide got checked and subsequent users did not know what to do.I final;ly figured it out and returned it to to NOT auto hide. Question is...
General Discussion
unexpected shutdown windows 7 - automatic reboot no info
I'm really lost. Any help would be greatly appreciated I attached my zip
BSOD Help and Support
Win7 Automatic Reboot (All New Hardware)
Hi all, I've just put together a new PC, but an having a problem with it rebooting itself. It usually happens within 3-30min of the system starting up. The setup is a brand new MOBO, CPU, PSU, RAM, HDD and DVD-RW. I'm using an older GPU. My specs: OS - Windows 7 Home Premium 64bit CPU -...
BSOD Help and Support
Task Scheduler: Automatic Backup/Shutdown
This is the procedure I've tried following but without success: 1. Open Task Scheduler 2. Create a new basic task 3. Enter a description for the task 4. On the trigger screen select "When a specific event is logged" 5. Select the Application from the log drop down menu. 6. Select Backup...
Backup and Restore
Automatic reboot
I have a Dell Inspiron 580 with i5, 8GB RAM, 1GB Video card. Periodically, the computer will reboot on its own. I've been working with Dell support, and their indication is it is not a hardware issue. They seem to believe it is a software issue. I've just re-installed the operating system, Windows...
BSOD Help and Support
Automatic reboot
Hi, my PC reboots automaticly without having permission. It's a Asus Barebone V6-P5G31E with a Core 2 Duo processor. I removed all unnecessary hardware, but still problems... I tried latest drivers... I returned it to the store where I bought it, they changed alot:
BSOD Help and Support


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 17:25.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App