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"

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\"

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




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




Comments


January 16th, 2020 by k h
Thanks! This worked.


February 23rd, 2021 by aj
Brilliant! Thank you so much!


April 22nd, 2021 by Luis Miguel
Amazing!!! thank you so much


August 19th, 2021 by MAYNOR COELLO URIARTE
Excelente me ayudo mucho. Gracias. Saludos dese Honduras.

Web design by yours truely - me, myself, and I   |   jeremy.canfield@freekb.net   |