I have a network with several computers on it, and I’d like to put all my PowerShell modules in a network share so I can easily access them from any computer. This works for script modules, however binary modules don’t seem to work.
The Import-Module statement can execute just fine without errors, however when you use Get-Module, it will show that the newly imported binary module is not exporting any Cmdlets. If I copy the module to a local directory on my computer, it all works as expected.
Is there a way to import binary modules from a network location?
The easiest way I found to load PowerShell modules was to add a configuration file to the
$PSHOMEdirectory.I created a text file at
$PSHOME\powershell.exe.configand put the following in the file:This does two things: