Internet Business

Schedule Daily Restarts on Windows Client Machines


Restarting regularly is a good practice in the field of system maintenance and optimization. In fact, during my years of IT support experience, a simple restart can often solve the customer's problem. (About 30% of the time I would say)

If you have clients running Windows in their offices, you can implement this strategy.

 

Let's assume the following scenario:

For a client's office, you have the following computers within its network infrastructure:

  • INFO-AS01 (Server, Windows Server 2003)
  • INFO-OFFC-W001 (User workstation, WinXP)
  • INFO-OFFC-W002 (User workstation, WinXP)
  • INFO-OFFC-W003 (User workstation, WinXP)
  • INFO-OFFC-W004 (User workstation, WinXP)
  • INFO-OFFC-W005 (User workstation, WinXP)

What you want to do is schedule a daily or weekly restart on all user workstations.

Solution: This can be accomplished easily by having a script scheduled to run on the server (or one of the user workstation) that will restart all user workstations.

 

Step 1: From the machine that's going to be running the script, you need to have administrative access to all user workstations.

What I do is for each client office, I create an administrative account with the same username and password on all workstations in the same location.

 

Step 2: On the machine that's going to be running the script following a certain schedule (let's call it the "server"), open up a text document and insert the following lines:

  • shutdown -r -f -m \\INFO-OFFC-W001
  • shutdown -r -f -m \\INFO-OFFC-W002
  • shutdown -r -f -m \\INFO-OFFC-W003
  • shutdown -r -f -m \\INFO-OFFC-W004
  • shutdown -r -f -m \\INFO-OFFC-W005

Definitions of the shutdown command variables:

  • -r [Restart the computer]
  • -f [Forces running applications to close without warning]
  • -m COMPUTER_NAME [Instruct a remote computer to shutdown]

 

Step 3: Save the file as a *.BAT file, e.g. "restart.bat"

Step 4: On the server, go to Start -> Programs -> Accessories -> System Tools. Run Scheduled Tasks

Step 5: Click on Add Scheduled Task

Click Next

 

Step 6: On the next screen, click on Browse and select the BAT file that you've just created: (restart.bat in our scenario)

 

Step 7: Schedule when the script will run (Daily, Weekly, Monthly...etc.)

In our scenario, we will choose Daily

 

Step 8: Select when the script will be executed.

 

Step 9: Enter in a user account information that has privileges to execute scripts on the server.

In our scenario we are just using the administrator account to run the scheduled task on the server: INFO-AS01

 

That's It!

Now all user workstations (in our scenario) will automatically restart at 6:00PM everyday.


Share it! IF YOU LIKE THIS ARTICLE

Twitter
Digg
Facebook
Delicious
Stumble

People Who Read This Article Also Liked:


Enable Commentluv | This site uses KeywordLuv