You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Confirmed that Compress-Archive on a 64-bit PowerShell 7.0.0-rc.2 is able to create a 6 GB zip file from many small files, but fails if a single input file is that large, regardless of whether -CompressionLevel NoCompression is used.
MethodInvocationException: C:\program files\powershell\7-preview\Modules\Microsoft.PowerShell.Archive\Microsoft.PowerShell.Archive.psm1:845
Line |
845 | … $destStream.Write($buffer, 0, $numberOfBytesRead)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Exception calling "Write" with "3" argument(s): "Stream was too long."
Does the 2 GB size limit apply to the Path (source) file or the Destination (.zip) file ?
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: