It Said the same thing
Microsoft Windows [Version 10.0.22621.1928]
(c) Microsoft Corporation. All rights reserved.
C:\Windows\System32>PowerShell $D=(New-Object -ComObject Wscript.Shell).SpecialFolders(4);Compress-Archive "%WinDir%\MEMORY.DMP" "$D\Memory\_dmp" Exception calling "Write" with "3" argument(s): "Stream was too long."
At C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\Microsoft.PowerShell.Archive\Microsoft.PowerShell.Archive.psm1:820 char:29
- ... $destStream.Write($buffer, 0, $numberOfBytesRead)
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~- CategoryInfo : NotSpecified: (:) [], MethodInvocationException
- FullyQualifiedErrorId : IOException
C:\Windows\System32>
Running V2 is taking this
PowerShell $D=(New-Object -ComObject Wscript.Shell).SpecialFolders(4);Compress-Archive "%WinDir%\MEMORY.DMP" "$D\Memory_dmp"
And pasting it into Administrative Command Prompt correct