MSDeploy.exe can connect as Administrator, but not any other Windows account

后端 未结 6 1807
情话喂你
情话喂你 2021-02-02 15:37

I\'m integrating MSDeploy into my build process, and having problems authenticating. The following command works fine:

msdeploy -verb:sync -source:appHostConfig         


        
6条回答
  •  再見小時候
    2021-02-02 16:15

    Figured It Out!

    So, it seems that (at least by default), WMSVC only listens on HTTPS, and HTTP will just time out. However, since my certificate was self-signed, I had to use the -allowUntrusted command line option.

    That was almost enough. I also had to specify authType=Basic like Richard originally suggested. So, to put it all together, this is the MSDeploy command line that will actually work:

    msdeploy -verb:sync -source:appHostConfig="Default Web Site",computerName=https://192.168.0.3:8172/msdeploy.axd,authType=Basic,userName=Publish,password=secret -dest:package=c:\DeployTest\KPC.zip -allowUntrusted
    

提交回复
热议问题