Microsoft.PowerShell.Archive 1.2.6 released
Hi All,
Somehow i managed to stumble about an Update of the Microsoft.PowerShell.Archive from the PowerShell Team.
Seems to be this GitHub Project but the “Servicing” Tree
- GitHub Microsoft.PowerShell.Archive
Check if the Module is installed and what’s available from the PowerShell Gallery
Get-InstalledPSResource -Name Microsoft.PowerShell.Archive -Scope CurrentUser
Find-PSResource -Name Microsoft.PowerShell.Archive
Install the Module
Install-PSResource -name Microsoft.PowerShell.Archive -Scope CurrentUser
Get-InstalledPSResource -Name Microsoft.PowerShell.Archive -Scope CurrentUser
Get the Commands from the Module
Get-Command -Module Microsoft.PowerShell.Archive
Compress the Files in a ZIP
Compress-Archive -Path "C:\Temp\AuditLog*.json" -DestinationPath C:\Temp\Auditlog.zip
Looks like the Files have been compressed to the ZIP File
Expand the Archive and list the Folder with PowerShell
Expand-Archive -Path "C:\Temp\Auditlog.zip" -DestinationPath "C:\Temp\Extract"
Get-ChildItem -Path "C:\Temp\Extract\AuditLog.zip"
Regards
Andres Bohren








