VMware vSphere

 View Only

Import-Module for PowerShell

  • 1.  Import-Module for PowerShell

    Posted Apr 28, 2012 02:43 PM

    Hello all,

      I must admint I'm not an avid coder but I can cobble things together to make life easier.  I'm generating some code to give to our web developers in order to let our clients perform simple functions on their VMs. 

      Of course if you launch powerCLI from the desktop things work fine, however how to you manually import a module into powerShell?

    I know that the packages are located at:

    "C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI"

    but I don't really know what module to import so I can hand the scripts over and the modules will be imported at run time from a standard powerShell command prompt.

    Thank you!

    Steven