Monday, June 27, 2016

Stop IIS Apppool only when it is Started using appcmd

In order to stop IIS apppool using appcmd only when apppool is started I used following command

%windir%\system32\inetsrv\appcmd list apppool /name:MyAppPoolName /state:Started /xml | %windir%\system32\inetsrv\appcmd stop apppool /in


No comments: