TheRandomLabs / scoop-nonportable

A Scoop bucket for nonportable applications.
The Unlicense
137 stars 40 forks source link

powertoys-np: Get-WmiObject not found in pwsh(7) #227

Closed d-w-x closed 3 years ago

d-w-x commented 3 years ago

powertoys-np uninstall script is: "script": "( Get-WmiObject Win32_Product | Where-Object Name -EQ 'PowerToys (Preview)').uninstall()"

But if someone use pwsh, there would be an exception: Get-WmiObject: The term 'Get-WmiObject' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Refer: https://github.com/PowerShell/PowerShell/issues/4766

MunsterPlop commented 3 years ago

Working on this, I will submit a PR soon.