MsDeploy Commandline publishing websites

“C:\Program Files (x86)\IIS\Microsoft Web Deploy V3\msdeploy.exe” -source:package=’\\cvr1-cvr-fs17p\Builddrops\QAAppPackDrops\xxxxx-xxxx\1.0.0.1947\CVR.Common.CommonServices_Package\xxx.Common.CommonServices.zip’ -dest:auto,ComputerName=”https://webservername:8172/MsDeploy.axd?site=websitename”,UserName=’BuildMachine’,Password=’xxxx’,IncludeAcls=’False’,AuthType=’Basic’ -verb:sync -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -setParamFile:”\\QAAppPackDrops\test\1.0.0.1947\SetParameters_Release – DEV.xml” -allowUntrusted -retryAttempts=2

Replace TFS SourceControl Binding During Migration

[cmdletBinding()] param ( [parameter(Mandatory =$true)] $SLNFile ) Write-Output $SolutionFile try { $FileCont = Get-Content -Path $SolutionFile $array = {} $start = 0..($FileCont.Count – 1) | where { $FileCont[$_] -like “*TeamFoundationVersionControl*”} $array = $start..($FileCont.Count – 1) | where { $FileCont[$_] -like “*EndGlobalSection*”} $end = $array[0] if($start -ne $null) { if($FileCont[$end – 2] -like “*Scc*”) { $FileList[…]

Deploy window services code using MsDeploy

“C:\Program Files (x86)\IIS\Microsoft Web Deploy V3\msdeploy.exe” -source:package=’\\QAAppPackDrops\xxx-DAILY-BUILD-xxDEV\1.2.0.55\CA.UI_Package\CA.UI.zip’ -dest:auto,ComputerName=”https://webservername:8172/MsDeploy.axd?site=xx.Interface“,UserName=’BuildMachine’,Password=’xx’,IncludeAcls=’False’,AuthType=’Basic’ -verb:sync -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -setParamFile:”\\QAAppPackDrops\xxx-DAILY-BUILD-CADEV\1.2.0.55\SetParameters_Release – QA.xml” -allowUntrusted -retryAttempts=2 –setParam:name=”IIS Web Application Name”,value=”website”