• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 357
  • Last Modified:

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

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.
1 Solution
apoint a person who do it
Ernie BeekExpertCommented:
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.
Ernie BeekExpertCommented:
Oh by the way, in control panel it's under 'administrative tools'.

@alirazakhan: is that supposed to be a serious answer?
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

shutdown -r -f -t 1

-f means force restart
This tutorial takes you through the steps of how to use Windows 7's Task Scheduler to create a basic task:


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.
AlamoAutomationAuthor Commented:
Thanks I found this as well sorry to bother with such a dumb question

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.
Ernie BeekExpertCommented:
Thx for the points.
And you know: there are no dumb questions, only dumb answers :)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now