IT:AD:MSDeploy:HowTo:Start and Stop Remote Server Websites
Summary
Process
If you were sitting at the server itself, you could use IT:AppCmd to do it.
* [[IT/AD/MSDeploy/HowTo/Start and Stop Remote Server WebSites]] Again, you can use local command line code to start/stop a server, but if your script allows for running it across the wire, better use an MSDeploy provider. <sxh> ...obj\Debug\Package>msdeploy.exe -verb:sync -source:recycleApp -dest:recycleApp=Bwainz.com,computername=192.168.0.2,userName=Administrator,password=Password1,recycleMode=StopAppPool
</sxh>