Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PowerShellGet 2.9.0 Preview Get-Module does not find AZ Module in PowerShell 5.1 #45

Open
3 tasks done
BohrenAn opened this issue Sep 19, 2023 · 0 comments
Open
3 tasks done

Comments

@BohrenAn
Copy link

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

Steps to reproduce

Under PowerShell 5.1 i can't find the installed Module AZ (i think this behavior is not limited to the PowerShellGet 2.9.0 - that's also the same under PowerShellGet 2.2.5.

The AZ PowerShell Module is installed here C:\Program Files\WindowsPowerShell\Modules\Az\10.3.0

PowerShellGet_2 9 0_Preview_06

#PowerShell 5.1
Get-Module
Get-Module AZ -ListAvailable

PowerShellGet_2 9 0_Preview_07

#PowerShell 7
Get-Module
Get-Module AZ -ListAvailable

PowerShellGet_2 9 0_Preview_08

Expected behavior

Get-Module AZ -Listavailable returns the installed Module under PowerShell 5.1

Actual behavior

Get-Module AZ -Listavailable does not return the installed Module under PowerShell 5.1

Error details

no error is shown

Environment data

$PSVersionTable

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

and

$psversionTable

Name                           Value
----                           -----
PSVersion                      7.3.7
PSEdition                      Core
GitCommitId                    7.3.7
OS                             Microsoft Windows 10.0.22621
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Version

5.1 and 7.3.7

Visuals

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant