Copy file with square brackets [ ] in the filename and use * wildcard
In this situation, you have to use double-backticks with single quotes in order to escape the brackets. You can also use quadruple backticks when you use double quoted strings. So the fixed line of code is: Copy-item -Path $FSG\$SW\0.RoomView.Notes\starter\’“[RoomView“] Versions explained*.pdf’ -Destination $FSG\$containerFolder\$rootFolder\’Fusion Server’\ Another good resource on file paths and wired characters etc. is … Read more