I´m trying to copy a large file (around 180MB) to a remote server using PowerShell Copy-Item.
Copy-Item –Path "$sourcePath" –Destination "$destPath" -Force –ToSession $session
it works for files of arround 100MB, but i'm having issues with larger files.
This is the error:
Not enough storage is available to complete this operation.
The runspace state is not valid for this operation.
This is the configuration on server side.
Config
MaxEnvelopeSizekb = 256000
MaxTimeoutms = 60000
MaxBatchItems = 32000
MaxProviderRequests = 4294967295
Client
NetworkDelayms = 5000
URLPrefix = wsman
AllowUnencrypted = true
Auth
Basic = true
Digest = true
Kerberos = true
Negotiate = true
Certificate = true
CredSSP = false
DefaultPorts
HTTP = 5985
HTTPS = 5986
Any ideas?
Thanks in advance.