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