Microsoft.WinGet.Client- Get-WinGetPackage : This cmdlet is not supported in Windows PowerShell in Systemcontext #4820
Labels
Context-System
Related to system context (nt authority/session 0)
PowerShell
Issue related to WinGet PowerShell Module or cmdlet
Brief description of your issue
After installing the current version (1.9.2411) of the Microsoft.WinGet.Client package from PSGallery many of the commands throw following errors:
Get-WinGetPackage : This cmdlet is not supported in Windows PowerShell.
Find-WinGetPackage : This cmdlet is not supported in Windows PowerShell.
get-WinGetPackage : This cmdlet is not supported in Windows PowerShell.
Install-WinGetPackage : This cmdlet is not supported in Windows PowerShell.
Psversion in System context:
`$PSVersionTable
Name Value
PSVersion 5.1.22621.4111
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.22621.4111
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1`
Steps to reproduce
Open PS in System Context
Install-Module Microsoft.WinGet.Client -Repository PSGallery -Scope AllUsers -Force
Import-Module Microsoft.WinGet.Client
Find-WinGetPackage HeidiSQL.HeidiSQL
Expected behavior
`Find-WinGetPackage HeidiSQL.HeidiSQL
Name Id Version Source
HeidiSQL HeidiSQL.HeidiSQL 12.8 winget`
Actual behavior
Get-WinGetPackage : This cmdlet is not supported in Windows PowerShell.
Find-WinGetPackage : This cmdlet is not supported in Windows PowerShell.
get-WinGetPackage : This cmdlet is not supported in Windows PowerShell.
Install-WinGetPackage : This cmdlet is not supported in Windows PowerShell.
Environment
The text was updated successfully, but these errors were encountered: