IIS 7 and Above
Website in stopped state is going into started state when server is r...
Re: Website in stopped state is going into started state when server...
Mar 18, 2019 02:45 AM|Jalpa Panchal|LINK
You could try to set attribute of 'serverAutoStart' on the site node.
Run below command to set property to false:
Set-WebConfigurationProperty -pspath 'MACHINE/WEBROOT/APPHOST' -filter "system.applicationHost/sites/site[@name='test2']" -name "serverAutoStart" -value "False"
Set-ItemProperty "IIS:\Sites\Default Web Site" serverAutoStart False
You could also change this using IIS manger to go to he configuration editor.
You could also set Start Mode of app pool is to "OnDemand". "Preload Enabled" is set to False on the site.