it:ad:msdeploy:howto:start_and_stop_websites

IT:AD:MSDeploy:HowTo:Start and Stop Websites

If working on the server itself, one could use AppCmd to do it.

But working remotely, one would prefer using IT:AD:MSDeploy and it's -runCommand param:

   msdeploy 
      -verb:sync 
      -source:runcommand
      -dest:runcommand="%windir%\system32\inetsrv\appcmd stop site /site.name:"Default Web Site"

If remotely, add the computername/username/password as required:

   msdeploy 
      -verb:sync 
      -source:runcommand
      -dest:runcommand="%windir%\system32\inetsrv\appcmd stop site /site.name:"Default Web Site", computername=192.168.0.2,userName=Administrator,password=Password1,waitinterval=15000

Starting a website is basically the same:

   msdeploy 
      -verb:sync 
      -source:runcommand
      -dest:runcommand="%windir%\system32\inetsrv\appcmd start site /site.name:"Default Web Site"

  • /home/skysigal/public_html/data/pages/it/ad/msdeploy/howto/start_and_stop_websites.txt
  • Last modified: 2023/11/04 01:49
  • by 127.0.0.1