Powershell Import-Module fails with DllNotFoundException -
trying use http://powershellgac.codeplex.com on computer powershell 2.0, using in powershell 3.0 on main pc shows on other pc:
get-module -listavailable manifest applocker {} manifest psdaignostics {} manifest troubleshootinggpack {} manifest gac {} manifest gac {} manifest gac {}
the brackets filled on main pc, why isn't working? have set exeuctionpolicy "unrestricted". still same error. have set $env:psmodulepath correctly on both pcs. (how else find gac manifest @ all)
edit: forgot add important info: when start .ps1 script inside powershell ise works, on other pc. there's nothing wrong script itself, i'm clueless.
-listavailable
lists modules can find on machine, modules not loaded (using import-module). powershell 2.0 not show exported commands until module loaded, powershell 3.0 does. see here. if want see exported commands loaded module try get-module
.
the results of command no reason believe module not working.
i'm author of powershell gac module , want thank trying out. please add complete error message details when loading module can figure out problem is.
execute dir ((get-itemproperty hklm:software\microsoft\.netframework -name installroot).installroot)
in both powershell console , ise , let me know results getting.
Comments
Post a Comment