Solved

Windows 2000 Server shutdown remote sql server hangs scheduling job and sql srver doesn't reboot

Posted on 2006-07-17
3
293 Views
Last Modified: 2010-04-13
I have a script, which works perfectly when run from a DOS prompt. It reboots a Windows 2000 SQL server, and then reboots the host system, also a Windows 2000 server. The command to shutdown the remote server uses shutdown.exe with options \\servername /T:30 /R /C. This script is scheduled to run every Sunday at 10:00. I do not have the option of using freeware or public domain software.  

When this script runs as a scheduled task, it hangs forever whilst performing the remote shutdown command. The scheduled task status is executing.
The account the job runs from is the same account I can use successfully from the dos command window.

What can be the problem? Remote access privilege? Which one?
0
Comment
Question by:peterkulisic
3 Comments
 
LVL 88

Accepted Solution

by:
rindi earned 250 total points
ID: 17123057
Try

shutdown \\servername -t:30 -r -c "comment" -f

the -f could be usefull as it is possible that some apps need to be confirmed to shutdown. I think it is also necessary for a comment to be added.
0
 

Author Comment

by:peterkulisic
ID: 17314700
The /f option seems to be an undocumented feature of the Windows 2000 shutdown.exe.
This certainly seems to be helping, and the server has been rebooted daily without fail for 2 weeks now.
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

821 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