Powershell Nested Modules

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,

Chris


February 15th, 2015 12:18am

I've figured it out, I commented the RootModule line and added the script and the dll as nested modules.
Free Windows Admin Tool Kit Click here and download it now
February 20th, 2015 9:07am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics