As title, When I use PowerShell perform decompression, the command line window just show the command like
'powershell.exe -nologo -noprofile -command "& { Add-Type -A 'System.IO.Compression.FileSystem'; [IO.Compression.ZipFile]::ExtractToDirectory('X:\XXX\XXX.zip', '.'); }"'
But I want to know which file is in decompress.
I'm not sure is there any parameter that I can add in that command? Or just I'm using incorrect parameter cause the log is not showing?
The ExtractToDirectory method doesn't provide any outputs or logs. You may have to use a third party tool like 7-Zip or use the COM-Object Shell.Application to open the Zip and copy each item by yourself where you can also add your desired outputs.