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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Use "Net Stop Server" from a batch file?

Status
Not open for further replies.

CHESTNUTTR

Technical User
Feb 21, 2002
28
US
How can I get by the yes/no prompt that comes up when I run "Net Stop Server" from a batch file on my Win2k server.
I want to stop the server service before I back up the server in the wee hours of the morning and I get a yes/no prompt-do I want to continue because someone has left their terminal signed on to the server? Any way to bypass the prompt or automatically answer "yes" to it?
 
"Net stop server /Y" solves the problem. Thanks for the help--comming in to the office at 3 AM to push "Y" on the keyboard and going home is not a lot of fun.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top