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!