Get-ZimmermanTools icon indicating copy to clipboard operation
Get-ZimmermanTools copied to clipboard

fix Expand-Archive to use correct library

Open jimdi opened this issue 1 year ago • 2 comments

Expand-Archive giving syntax error in PowerShell v5.1 (A parameter cannot be found that matches parameter name 'DestinationPath')

I've added Microsoft.PowerShell.Archive to use it from the correct library.

jimdi avatar May 30 '24 15:05 jimdi

Using PowerShell 5.1 and Get-Host | Select-Object Version, I currently have version 5.1.17763.5696 installed.

Using PowerShell 7 and $PSVersionTable | Select-Object PSVersion, I currently have version 7.1.3 installed.

I tried this just now in both PowerShell 5.1 and 7 and did not see any errors relating to Expand-Archive. That being said, adding Microsoft.PowerShell.Archive/ didn't cause any issues either so 🤷

AndrewRathbun avatar May 30 '24 15:05 AndrewRathbun

I have version 5.1.26040.1000 installed and have issue =
with 7.5.0-preview.2 works fine

jimdi avatar May 30 '24 16:05 jimdi