How to import powershell module from local file (intelNetCmdlet.psd1)

Hi all,

Have any of You tried to import a powershell module from local file (intelNetCmdlet.psd1) and then run cmdlets

I can make the module work outside Ansible with import-module -path “C:\somepath.psd1” on windows.

Thank you.

/Car

Hi,

This module seems to be of use to install PS modules, but I can’t tell for sure it can’t be used to import those as well.

If not, you could still use ansible.windows.win_powershell to import your modules through script parameter, running your ipmo command from there.

Either you have it installed as any other normal module on the target Windows host so you can do Import-Module intelNetCmdlet or you manually import it with the path.