Hi
I am trying to copy content of a folder but there are two files which i would like to exclude. rest all the content should be copied to a new location and existing content on that new location should be overwritten.
this is my script. it works fine if my destination folder is empty. but if i have files and folder it doesnt over writes them
$copyAdmin = $unzipAdmin + "/Content/*"$exclude = @('Web.config','Deploy')
Copy-Item -Path $copyAdmin -Destination $AdminPath -Exclude $exclude -Recurse -force