|
Answer» I need to restart IIS Admin Service using batch script.(this csript will be run as a job where no manual INTERVENTION is needed) I USE the commands "netstop IIS Admin Service " and "netstart IIS Admin service"
But the issues here is on executing "netstop IIS Admin Service" I am prompted to manually enter 'y/n' whether I want to STOP this service. Now I need script/command where this PARAMETER 'y' would be passed through the command/ script itself, rather than manually entering the same.
Can anybody plz help me out??There are two WAYS you can stop and restart IIS: from a DOS command line or from Windows.
from a DOS command line
To stop IIS, at the DOS command prompt, type, iisreset /stop To restart it, type iisreset /start
Then execute the batch
|