Quantcast
Channel: Web Deployment Tool (MS Deploy)
Viewing all articles
Browse latest Browse all 663

MSWebDeploy - Exclude folder with Sync-WDServer

$
0
0

Hi,

i used msdeploy to sync Servers. Here are my Code:

add-pssnapin wdeploysnapin3.0

#Create settings
New-WDPublishSettings -ComputerName SERVER01.lwn.liebherr.i -AgentType MSDepSvc -FileName C:\Powershell\WebDeploy\Settings\SERVER01.publishsettings

New-WDPublishSettings -ComputerName SERVER02.lwn.liebherr.i -AgentType MSDepSvc -FileName C:\Powershell\WebDeploy\Settings\SERVER02.publishsettings -UserID DOMAIN\USERXY -Password yyyy

#Sync
Sync-WDServer -SourcePublishSettings C:\Powershell\WebDeploy\Settings\SERVER01.publishSettings -DestinationPublishSettings C:\Powershell\WebDeploy\Settings\SERVER02.publishSettings

Now i want to exclude 1 Folder for sync. What is the best way to do this?

Thanks for your help!


Viewing all articles
Browse latest Browse all 663

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>