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

Updated:   |  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 Buy Me A Coffee



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

Add a Comment


Please enter e8f826 in the box below so that we can be sure you are a human.