Powershell Nested Modules RRS feed

  • Question

  • Hello,

    I'm having trouble with my Powershell module...

    I have a script module named mymodule and I have created a module manifest. Everything is working fine so far.

    I also created a binary module with a couple of functions that I want to be available with the above module.

    I edited the manifest file adding the second module as a nested module and then added the Export-ModuleMember command on the first module to export the command from the nested module.

    When I import the main module, the command from the nested module is not available on the powershell window. It is available in the main module though. I tested this by creating a function on the main module calling the function from the nested module.

    Also, if the nested module is script, everything works fine.

    Best regards,


    Saturday, February 14, 2015 9:18 PM


  • I've figured it out, I commented the RootModule line and added the script and the dll as nested modules.
    Friday, February 20, 2015 2:00 PM