When I use
Import-Module -Name <path_to_local_dll> -Verbose
the cmdlets contained in the DLL file are not exported.
Thus, when I type Get-Module
my imported module is listed, but without any ExportedCommands. Why?
ModuleType Name ExportedCommands
---------- ---- ----------------
Binary MyModule
On a second PC with the same software (PowerShell, .NET Framework, ...), the same imported DLL file works fine. There I get ExportedCommands.
On what can this behaviour depend?
Unfortunately, the Import-Module
cmdlet gives no indication that it failed to import the cmdlets. Is there a way to get an indication why it fails?