9
The following command does not show the error message, which is what I want:
Copy-Item "C:\Folder I Have Access To\*" "C:\Folder I Do Not Have Access To" -ErrorAction SilentlyContinue
The following command does show the error message, which is not what I want:
Copy-Item "C:\Folder I Have Access To\*" "C:\Folder I Do Not Have Access To" -Force -ErrorAction SilentlyContinue
This is because I'm using the "Force" parameter. Is there a way I can use the "Force" parameter and still not show the error message?