Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatic Restart on NT 4.0

Status
Not open for further replies.

hceonetman

Technical User
Mar 16, 2001
92
US
I have the NTReskit installed and am trying to do an automatic restart during off hours. Win NT scheduler is running as a service. On the same server I wish to restart, I click 'My Computer' and select 'Scheduled Tasks'. I click to add a new task and enter:
&quot;C:\NTReskit\Shutdown.exe \\<Servername> /R /C /T:1 /Y&quot;.
I schedule this for 6:00 a.m the next day as a one-time event. The system lists this as a scheduled event. The next morning I can see the server has not shut down but I don't see any error msg. The task is still in the scheduler, but 'next run time' is listed as 'Never'. I expect I'd have to be here to watch it try to execute to see any error - then my luck would be that it would work and I'd disconnect everyone.
If I remember right, the above parameters are '/R' for restart, '/T:1' tells it to execute in one second, and '/Y' is to confirm the restart. I don't remember where I got the /C.
Besides not wanting to come in at 6:00 a.m., what am I doing wrong?

Thanks for any and all help,
HCEONETMAN
 
I had the same problem with the NTReskit shutdown.exe file so I went out to the web and found another one. I don't know why but I scheduled the event and it worked fine.

I'm sure you've checked this but are you sure the scheduler service is running as well (I know it's a stupid question but if I didn't ask you someone else would have)? Just trying to help you out....

david e
*end users are just like computers, some you can work with...others just need a simple reBOOTing to fix their problems.*
 
Thanks, Sobak. No, there are no stupid questions, but yes, the scheduler service is running. We do a weekly update to some other servers that runs automatically each Sunday, so I know it works. I just tried Shutdown on a different NT server, but instead of \\servername, I used the /L (local machine) parameter and it worked from a command line. I then succeeded in doing it from scheduler. The parameters may have been the problem. I'll know for sure on Monday.
HCEONETMAN
 
Cool, that may have been my problem as well, I was attempting to do it the same way that you did. I think the program I downloaded would only reboot the local server so it didn't require any switches, just scheduled it to run at 3:00am and haven't touched it yet....I'll be able to use this information in the future...

david e
*end users are just like computers, some you can work with...others just need a simple reBOOTing to fix their problems.*
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top