Modules are imported by module discovery #2664
Labels
bug
Something isn't working
completed
The issue has been completed but is not yet released.
PowerShell Universal
Issue relates to PowerShell Universal.
Milestone
Version
4.0.12
Severity
Low
Steps to Reproduce
Modules in the repository Modules directory are being imported when the configuration system is running. This is causing problems for some users. We are doing this to read metadata about the module. We should instead use Get-Module -ListAvailable to get the same metadata and not import the module.
Expected behavior
All modules in Modules are not imported into PSU
Actual behavior
All modules in Modules are imported into PSU
Additional Environment data
No response
Visuals
No response
The text was updated successfully, but these errors were encountered: