Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $msdeploy = "C:Program Files (x86)IISMicrosoft Web Deploy V3msdeploy.exe";
- $site = "test"
- $msdeployUrl = "https://someserver:8172/msdeploy.axd?site="
- $user = "correct username"
- $password = "correct password"
- $msdeploy = "C:Program Files (x86)IISMicrosoft Web Deploy V3msdeploy.exe";
- $msdeployArguments =
- '-allowUntrusted:true',
- '-source:contentPath="D:teamcitybuildAgentworke5be789e2c46e6c4v1web"',
- ('-dest:auto,computerName="'+$msdeployUrl+$site+'",includeAcls="false",userName="'+ $user+'",password="'+$password+'",authtype="Basic"'),
- '-verb:sync',
- '-disableLink:AppPoolExtension',
- '-disableLink:ContentExtension',
- '-disableLink:CertificateExtension'
- '-setParam:name="IIS Web Application' + ('Name",value="' + $site + '"');
- Write-Host $msdeployArguments
- & $msdeploy $msdeployArguments
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement