JeffB said:
We need to automatically shut down a Win2000 server once a month. Don't
have
'official' MS shutdown.exe, but am trying to use a couple third-party
apps.
Trouble is, they only run if logged into the server.
Is there any way to do this? With the MS shutdown.exe? And how can I get
that? MS says it's on the Win2000 Resource disk, which I don't have and
it
appears you can no longer get.
tia
All third-party shutdown commands I've used work in the same way as the
native shutdown.exe command, provided you have sufficient privileges to shut
down the machine. I recommend you do this:
- Log on to the server.
- Put the following lines into c:\Windows\MyShutdown.bat:
@echo off
echo %date% %time% %UserName% >> c:\MyShutdown.log
c:\shutdown.exe /.. /.. 1>> c:\MyShutdown.log 2>>&1
- Open a Command Prompt.
- Run c:\Windows\MyShutdown.bat
- After the reboot use notepad.exe to examine c:\MyShutdown.log
- Use the Task Scheduler to schedule c:\Windows\MySchutdown.bat
to run once a month.
- Right-click the task you created just now, then click Run.
- If the server reboots, fine, problem solved. If it does not, use
notepad.exe
to examine c:\MyShutdown.log
I expect that all will be crystal-clear after this little exercise.
By the way - be careful when rebooting servers automatically. Your
accountant might have a few terse words for you if he loses his files while
he was working at 2am to prepare the annual financial statements.