tags:

views:

65

answers:

1

HI,

I would like to write a code in which start iss, if iis is not running.

+4  A: 

Starting IIS from the commandline:

iisreset /start

Stopping IIS from the commandline:

iisreset /stop

Restarting (stop and start):

iisreset /restart
Wim Hollebrandse
I want to restart only when service is not start automaticaly I have found the solution @ECHOnet start | find /i "IISADMIN">NUL if errorlevel==1 net start IISADMIN@ECHO
Yogi