microsoft / microsoft/winget-cli
Microsoft.WinGet.Client- Get-WinGetPackage : This cmdlet is not supported in Windows PowerShell in Systemcontext
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 26.4k
- Forks
- 1.8k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 15
Description
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
Windows: Windows.Desktop v10.0.22631.4169
Systemarchitektur: X64
Paket: Microsoft.DesktopAppInstaller v1.23.1911.0
PSVersion 5.1.22621.4111
Microsoft.WinGet.Client 1.9.2411 from PSGallery
Windows 11 22631.4169
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue from the Microsoft.WinGet.Client module entry points listed in the report: import the module in Windows PowerShell 5.1 under System context and run Find-WinGetPackage HeidiSQL.HeidiSQL. Compare the behavior with the expected package result and verify that the affected cmdlets work in that environment when the investigation is complete.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100