PowerShell 7.0.3 - Get-Package cmdlet not working

Created on 21 Jul 2020  路  3Comments  路  Source: PowerShell/PowerShell

Steps to reproduce

Get-Package
or
Get-Package -Provider Programs -IncludeWindowsInstaller


## Expected behavior

Lists all installed applications on the machine working on below version

Name                           Value
----                           -----
PSVersion                      5.1.19041.1
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.19041.1
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

PS C:\WINDOWS\system32> Get-Package -ProviderName Programs -IncludeWindowsInstaller

Name                           Version          Source                           ProviderName
----                           -------          ------                           ------------
Windows Driver Package - Cr... 01/23/2018 3....                                  Programs
Greenshot 1.2.10.6             1.2.10.6                                          Programs
Logitech Unifying Software ... 2.10.37                                           Programs
Microsoft Visual Studio 201... 10.0.60825                                        Programs
Mozilla Firefox 75.0 (x64 e... 75.0                                              Programs
Mozilla Maintenance Service    75.0                                              Programs
Notepad++ (64-bit x64)         7.8.7                                             Programs
Microsoft Office 365 ProPlu... 16.0.12527.20880                                  Programs
Intel(R) Network Connection... 22.9                                              Programs
Sophos Endpoint Agent          2.7.8                                             Programs
VLC media player               3.0.10                                            Programs
PowerShell 7-x64               7.0.3.0                                           Programs


PS C:\WINDOWS\system32>

Actual behavior

PS C:\Program Files\PowerShell\7> Get-Package
PS C:\Program Files\PowerShell\7>

or

PS C:\Program Files\PowerShell\7> Get-Package -Provider Programs -IncludeWindowsInstaller
Get-Package: Unable to find package providers (Programs).
PS C:\Program Files\PowerShell\7>


## Environment data

<!-- provide the output of $PSVersionTable -->

Name                           Value
----                           -----
PSVersion                      7.0.3
PSEdition                      Core
GitCommitId                    7.0.3
OS                             Microsoft Windows 10.0.19041
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0鈥
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Area-PowerShellGet Issue-Question

Most helpful comment

/cc @alerickson

All 3 comments

/cc @alerickson

@iSazonov should this be moved to the oneget repo?

@ThomasNieto I added /cc to owners - they can move if needed.

Was this page helpful?
0 / 5 - 0 ratings