Solved

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

Posted on 2006-07-17
3
296 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

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…
Invest in your employees with these five simple steps to improve employee engagement and retention.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

752 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