Solved

Is there a way to restart my Windows 7 PC everynight.

Posted on 2011-03-25
8
345 Views
Last Modified: 2012-05-11
Sometimes my PC will not see the camera, microphone and printer. When I re-boot the PC I see all again. I would like to refresh everything every night and have it ready for my wife to clutter up the next day.

Thanks in advance.
0
Comment
Question by:AlamoAutomation
8 Comments
 

Expert Comment

by:alirazakhan
ID: 35216262
apoint a person who do it
0
 
LVL 35

Accepted Solution

by:
Ernie Beek earned 500 total points
ID: 35216276
In control panel you have Task Scheduler. Create a task there to run every night, executing: shutdown -r -t 01 and you should be fine.
0
 
LVL 35

Expert Comment

by:Ernie Beek
ID: 35216309
Oh by the way, in control panel it's under 'administrative tools'.

@alirazakhan: is that supposed to be a serious answer?
0
 
LVL 12

Expert Comment

by:enachemc
ID: 35216315
shutdown -r -f -t 1

-f means force restart
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 59

Expert Comment

by:LeeTutor
ID: 35216362
This tutorial takes you through the steps of how to use Windows 7's Task Scheduler to create a basic task:

http://www.7tutorials.com/how-create-task-basic-task-wizard

The action you want to take, as the last step of creating the basic task, would be:

c:\windows\system32\shutdown.exe /r /t 00

This calls a system program to restart the computer immediately (at whatever time you specified for task scheduler to run this task).  The "/r" argument does a restart rather than a shutdown (you would specify "/s" if you wanted to shutdown the computer instead), and the /t 00 specifies the number of seconds (zero) to wait before running the task.
0
 

Author Closing Comment

by:AlamoAutomation
ID: 35216533
Thanks I found this as well sorry to bother with such a dumb question
0
 

Expert Comment

by:phimanshuj
ID: 35216617

I created a batch file in notepad containing the following string
c:\windows\system32\shutdown.exe /R /T 5 /F
 
saved as "autoshutdown.bat"

Then scheduled a task to run nightly at 1am.
0
 
LVL 35

Expert Comment

by:Ernie Beek
ID: 35216772
Thx for the points.
And you know: there are no dumb questions, only dumb answers :)
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

One of the features I've come to appreciate about Windows 7 and Windows Server 2008 R2 is the ability to pin applications to the task bar. As useful a feature as I've found this, it does have some quirks.  For example, have you ever tried pinning an…
First some basics on Windows 7 Backup.  It has 2 components one is a file based backup which is stored in .zip files each zip is split at around 200 Megabytes and there is the Image Backup which is as the name implies a total image of the partition …
This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now