Created
September 30, 2015 11:34
-
-
Save RaccoonDev/84242da7f8b183e8e65e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$msdeploy = "$env:ProgramFiles\IIS\Microsoft Web Deploy V3\msdeploy.exe" | |
##Get this values from publish profile | |
$publishUrl="" | |
$msdeploySite="" | |
$userName="" | |
$userPWD="" | |
$computerNameParams = ",computername=`"https://$publishUrl/msdeploy.axd?site=$msdeploySite`",userName='$userName',password='$userPWD',AuthType='Basic'" | |
$argList = @( | |
"-verb:sync", | |
"-source:package=`"package.zip`"", | |
("-dest:auto" + $computerNameParams), | |
"-verbose" | |
); | |
Start-Process -FilePath $msdeploy -ArgumentList $argList -NoNewWindow -Verbose -Wait -PassThru; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment