Solved

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

Posted on 2006-07-17
3
290 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 87

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Migrate DFS role 3 719
Making a spare domain pc 12 320
Windows 7 7 255
Windows 2000, Ghost 2003, disk1 disk 2 mirroring 17 339
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…
Is your company's data protection keeping pace with virtualization? Here are 7 dynamic ways to adapt to rapid breakthroughs in technology.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

743 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

14 Experts available now in Live!

Get 1:1 Help Now