3 ms·
> connecting to a remote server and exchanging the file contents over a base64 stream (?) I think that's not the right code because it's in "PerformCopyFileFro
by jodrellblank 11mo ago
> connecting to a remote server and exchanging the file contents over a base64 stream (?)
I think that's not the right code because it's in "PerformCopyFileFromRemoteSession" and that sounds like it's for Copy-Item -ToSession ... -FromSession ... which are for New-PSSessions (PowerShell remoting/WinRM). Those are already Powershell-serialized-in-XML-in-WinRM-XML (I think) and copying file data plausibly goes into Base64 to go inside that.
That can't be what happens if you do Copy-Item -Destination \\server\share\