The following command does not display the error message I want:
Copy-Item "C:\Folder I Have Access To\*" "C:\Folder I Do Not Have Access To" -ErrorAction SilentlyContinue
The following command shows an error message that 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 use the Strength parameter. Is there a way I can use the "Force" parameter and still not show the error message?
Simon source share