Net send script
want able stop sql server service , restart via script. far have:
net stop "sql server (instance)"
which works since have 2 instances comes saying "would stop second instance" "yes" im not sure how add script override question or pass in parameter "yes".
overall want stop , restart later.
does have clues?
thanks
net stop "sql server (instance)"
which works since have 2 instances comes saying "would stop second instance" "yes" im not sure how add script override question or pass in parameter "yes".
overall want stop , restart later.
does have clues?
thanks
try this
net stop "sql server (instance)" <c:\yes.txt
and file c:\yes.txt contains "y"
something below
yyyyyyyyyy
yyyyyyyyyy
(only 1 'y' work)
net stop "sql server (instance)" <c:\yes.txt
and file c:\yes.txt contains "y"
something below
yyyyyyyyyy
yyyyyyyyyy
(only 1 'y' work)
Windows Server > Windows Server General Forum
Comments
Post a Comment