Solved

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

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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

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…
Fine Tune your automatic Updates for Ubuntu / Debian
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.

929 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

10 Experts available now in Live!

Get 1:1 Help Now