Powershell import-module doesn't find modules

后端 未结 8 1079
暗喜
暗喜 2020-12-23 14:45

I\'m learning PowerShell and I\'m trying to build my own module library.

I\'ve written a simple module XMLHelpers.psm1 and put in my folder $home/

8条回答
  •  梦毁少年i
    2020-12-23 15:17

    try with below on powershell:

    Set-ExecutionPolicy -ExecutionPolicy Unrestricted
    import-module [\path\]XMLHelpers.psm1
    

    Instead of [] put the full path

    Full explanation of this and that

提交回复
热议问题