Solved

Windows 2003 restart server script

Posted on 2004-04-07
11
2,908 Views
Last Modified: 2012-06-27
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
Comment
Question by:Brad_nelson1
  • 3
  • 2
  • 2
  • +2
11 Comments
 
LVL 10

Expert Comment

by:vadim63
Comment Utility
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
 

Author Comment

by:Brad_nelson1
Comment Utility
My windows 2003 server doesnt have shutdown.exe anywhere on the server.
0
 
LVL 10

Accepted Solution

by:
vadim63 earned 125 total points
Comment Utility
It should be: C:\WINDOWS\system32\shutdown.exe
0
 
LVL 9

Expert Comment

by:jamesreddy
Comment Utility
If it is 2003, shutdown.exe should be there.  You sure it is 2003 Server?  Because 2000 Server does not have shutdown.exe.
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 

Author Comment

by:Brad_nelson1
Comment Utility
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
 
LVL 9

Assisted Solution

by:jamesreddy
jamesreddy earned 125 total points
Comment Utility
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
 
LVL 9

Expert Comment

by:jamesreddy
Comment Utility
Here is a free utility that also should work with Windows 2000.

http://www.winutility.com/qsd/
0
 

Expert Comment

by:logicalideas
Comment Utility
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
 

Expert Comment

by:tjlav
Comment Utility
-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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

by Batuhan Cetin In this article I will be guiding through the process of removing a failed DC metadata from Active Directory (hereafter, AD) using the ntdsutil tool in a Windows Server 2003 environment. These steps are not necessary in a Win…
by Batuhan Cetin Within the dynamic life of an IT administrator, we hold many information in our minds like user names, passwords, IDs, phone numbers, incomes, service tags, bills and the order from our wives to buy milk when coming back to home.…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

763 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

10 Experts available now in Live!

Get 1:1 Help Now