IT:AppCmd:HowTo:Start and stop Websites
Summary
During an install process, after making a backup of IIS's metadata, one can stop a website, to ensure once can update the website with a new version.
If on the server, one can use IT:AppCmd to do it. If working on a remote server, consider using IT:AD:MSDeploy:HowTo:Start and Stop Websites
Process
pcmd stop site /site.name:"Default Web Site"
appcmd start site /site.name:"Default Web Site"
Appcmd stop site "Default Web Site" Appcmd start site "Default Web Site" Appcmd stop site "Default Web Site\XYZ” Appcmd start site "Default Web Site\XYZ"