i'm learning powershell modules. So far i've created a module, i can see it in the list when Get-Module -listavailable, but there's no ExportedCommands ? how can i track the error ?
Posted on 2015-01-05
I'm working on powershell, i'm working on modules as i'd like to have my code cleany wrote in modules.
So far i know how to list the available modules, and lucky me : my module is visible in that list that point to the "program files/windowPowerShell/Modules folder".
So my .psm1 file and my psd1 files are correct and in a folder having the same name.
So then i can import it with "Import-module -Name <modulename>"
On "Get-Module -ListAvalaible" The column with ExportedCommands is empty for my module.
then i can not launch my cmdlets or functions, they dont exist in the session.
My Questions :
- how to check the problem i dont know what to do in order to have more infos ?
- is the code ? is the module ? .....
Get-Command -Module mymodule <- gives me no output as if my module has no functions.
Thanks for your help.