PowerShell - Resolve "the source and destination paths did not resolve to the same provider"

by
Jeremy Canfield |
Updated: March 16 2020
| PowerShell articles
Error the source and destination paths did not resolve to the same provider typically appears when using the Copy-Item or Move-Item command to copy or move a file from the local PC to another PC. The target PC is probably configured to share a network drive. As an example, this error may appear when using this command:
Move-Item "C:\Users\username\Documents\Example.txt" -Destination "\\Example\share\"
To resolve this error, add Microsoft.PowerShell.Core\FileSystem:: to the local and target paths.
Move-Item "Microsoft.PowerShell.Core\FileSystem::C:\Users\username\Documents\Example.txt" -Destination "Microsoft.PowerShell.Core\FileSystem::\\Example\share\"
Did you find this article helpful?
If so, consider buying me a coffee over at
Comments
January 16 2020 by k h
Thanks! This worked.
February 23 2021 by aj
Brilliant! Thank you so much!
April 22 2021 by Luis Miguel
Amazing!!! thank you so much
August 19 2021 by MAYNOR COELLO URIARTE
Excelente me ayudo mucho. Gracias. Saludos dese Honduras.
July 31 2023 by Nokex
you save my day