Get-Module -ListAvailable doesn't respect DefaultPrefix #15743
Labels
In-PR
Indicates that a PR is out for the issue
Needs-Triage
The issue is new and needs to be triaged by a work group.
WG-Engine-Module
Prerequisites
Steps to reproduce
Use any module that has the DefaultCommandPrefix defined in the module manifest. I modified one of my modules to test with.
In Windows PowerShell, if I have a module that uses a defined prefix, this works as expected.
Expected behavior
The module is NOT loaded into my session. But not in PowerShell 7. PowerShell 7 fails to use the prefix.
Actual behavior
If I import the module in PowerShell 7 and re-run the command then it works.
Environment data
Also tested in 7.2.0-preview.4 with the same results.
The text was updated successfully, but these errors were encountered: