I am getting below error, and I don't know why its not working (however normal Copy-Item command is working fine).
Sync-WDServer : (11/13/2017 4:28:38 AM) An error occurred when the request was processed on the remote computer.
Cannot create a file when that file already exists. (Exception from HRESULT: 0x800700B7)
at Microsoft.Web.Deployment.IAppHostConfigLocationCollection.AddLocation(String bstrLocationPath)
at Microsoft.Web.Deployment.AppHostConfigProvider.AddChild(DeploymentObject source, Int32 position, Boolean whatIf)
at Microsoft.Web.Deployment.DeploymentObject.AddChild(DeploymentObject source, Int32 position, DeploymentSyncContext syncContext)..............