Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2922
  • Last Modified:

Windows 2003 restart server script

I need a script that I can add to the Task Scheduler that will restart my windows 2003 server. I have tried a few but none seem to work.

Can anyone provide me with such a script?

THanks,
Brad
0
Brad_nelson1
Asked:
Brad_nelson1
  • 3
  • 2
  • 2
  • +2
2 Solutions
 
vadim63Commented:
You even don't need any scripts.
1. Open Add Scheduled Tasks
2. Browse "C:\WINDOWS\system32\shutdown.exe"
3. Call it "Restatrt" and make a schedule.
4. Next screen: enter user name and password (admin rights)
5. Check "open advanced properties when I click finish" and click finish
6. Change "C:\WINDOWS\system32\shutdown.exe" to "C:\WINDOWS\system32\shutdown.exe -r -t 00"

All done
0
 
Brad_nelson1Author Commented:
My windows 2003 server doesnt have shutdown.exe anywhere on the server.
0
 
vadim63Commented:
It should be: C:\WINDOWS\system32\shutdown.exe
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
jamesreddyCommented:
If it is 2003, shutdown.exe should be there.  You sure it is 2003 Server?  Because 2000 Server does not have shutdown.exe.
0
 
Brad_nelson1Author Commented:
Ya I made the mistake of looking on a windows 2000 server, I did find it on my windows 2003 server.

How can I do the same thing for windows 2000? Can I copy the shutdown.exe to the windows 2000 server?

0
 
jamesreddyCommented:
I don't know if THAT one works for Windows 2000, but there is a shutdown.exe tool included in the Windows 2000 Resource Kit.  See below:

http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B317371
0
 
jamesreddyCommented:
Here is a free utility that also should work with Windows 2000.

http://www.winutility.com/qsd/
0
 
logicalideasCommented:
I need to do the same on my server.

Can some explain to me why I have to ammend the scheduled task to say as per suggestion above:

6. Change "C:\WINDOWS\system32\shutdown.exe" to "C:\WINDOWS\system32\shutdown.exe -r -t 00
In other words what does "-r -t 00" do to the shutdown command??? Do I need to add that?

thanks!!
0
 
tjlavCommented:
-r tells the server is a restart instead of a shutdown.
-t is time, 00 means now 60 would mean 60 seconds from now 3600 would be an hour from the time the command was executed
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

  • 3
  • 2
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now