Another way to suppress the NativeCommandError
output is to convert the objects in the pipeline to strings as outlined at the bottom of this answer:
du c:\Backup 2>&1 | %{ "$_" }
Another way to suppress the NativeCommandError
output is to convert the objects in the pipeline to strings as outlined at the bottom of this answer:
du c:\Backup 2>&1 | %{ "$_" }