Reboot Server every 21 days

Hi,

Can someone tell how I can reboot our windows server every 21 days?

Regards

Tahir Ahmed
LVL 1
Tahir2008Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Brian PiercePhotographerCommented:
Why on earth do you want to do this ?

If you really must (I doubt it), then schedule shutdown -r -f to run every 21 days
0
Tahir2008Author Commented:
On one of our servers if it has been running for a X number of days without a reboot, lets say a month or 2 then the server stops allowing users to log on and has to be hard rebooted, I was looking at avoiding this by rebooting the server before this period to ensure that this does not occur.
0
Neil RussellTechnical Development LeadCommented:
why not try and find out why instead?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Tahir2008Author Commented:
Its a very old server, upgrading the memory is out of the question and there is nothing else wrong with it, it just runs out of memory and then is unable to process any further requests.
0
Neil RussellTechnical Development LeadCommented:
A properly configured server does not just "Run out of memory". You would be just as well advised to find the cause like i said....

However....

Just set a sceduled task to run

shutdown.exe -r -t 60

That will cause a reboot in 60 seconds. Of cause you need to schedule it at the right time.

What does the server run?
0
Tahir2008Author Commented:
Windows 2000 Server
0
Neil RussellTechnical Development LeadCommented:
I meant what do you run on the server. And you have this in every server Zone except 200 i think :P
0
Tahir2008Author Commented:
We inherited the server running Apache web server on it, it runs a custom written intranet. We are looking to change this in a year or so to a new server so just need to keep it running as is for a little while, it makes sense to just reboot the server periodically until a new server is installed.
0
Tahir2008Author Commented:
Resolved the problem by finding the cause of the problem. In this case the issue was related to Black Berry Express Server eating up all the memory on the server, a known issue with Version 5.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2003

From novice to tech pro — start learning today.