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

Home > Search
  by

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 in the box below so that we can be sure you are a human.




Comments