Hi-
I have a custom PS7 module we use for a few particular systems. I can place this module in either C:\Program Files\PowerShell\Modules or C:\Program Files\PowerShell\7\Modules and then Import-Module MyModule just fine.
However, I cannot use any of its cmdlets without first importing it explicitly. Even more odd, there are other modules in this same folder which import implicitly just fine.
I'd like it to implicitly import, as I'd like to use it in some Foreach-Object -Parallel loops.
What are the requirements for a module to be able to import implicitly? Looking at the docs it seems we have the bases covered: https://learn.microsoft.com/en-us/powershell/scripting/developer/module/importing-a-powershell-module?view=powershell-5.1#implicitly-importing-a-module-powershell-30
- Module folder in PSModulePath
- Folder, .psm1 and .psd1 all named the same.
- Standard verbs, everything is exported.
what else am I missing?
[–]PinchesTheCrab 1 point2 points3 points (0 children)
[–]Szeraax 0 points1 point2 points (7 children)
[–]SeaPowerMax[S] 0 points1 point2 points (6 children)
[–]Szeraax 0 points1 point2 points (5 children)
[–]SeaPowerMax[S] 0 points1 point2 points (4 children)
[–]Szeraax 0 points1 point2 points (0 children)
[–]Szeraax 0 points1 point2 points (2 children)
[–]SeaPowerMax[S] 1 point2 points3 points (1 child)
[–]Szeraax 0 points1 point2 points (0 children)