VMware Cloud Community
Mulliganx
Enthusiast
Enthusiast
Jump to solution

Missing PowerCLI Commands

I use PowerCLI in the PowerShell ISE.  PowerShell Version 4.  PowerCLI Version 5.5 R1.

I noticed that I am missing some PowerCLI commands in the ISE, but not when I directly open up the vSphere PowerCLI.

Commands I am missing:  Get-PowerCLIHelp, Get-VICommand, Get-PowerCLICommunity. 

This is weird, as when I open ISE, I immediately run the following command.  Add-PSSnapin vmware.vimautomation.core

I do have use of PowerCLI Commands, but I am missing a few of them in ISE.


What is it that I need to do in order to run all of the PowerCLI commands?

I would like to work with this in the PowerShell ISE as I switch between PowerShell and PowerCLI.


Thanks,

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

These are just functions defined in the initialisation script.

No pssnapin nor module I'm afraid.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

0 Kudos
3 Replies
LucD
Leadership
Leadership
Jump to solution

These are in fact functions that are defined in the PowerCLI initialisation script (%programfiles%\VMware\Infrastructure\vSphere PowerCLI\Scripts\Initialize-PowerCLIEnvironment.ps1 or %programfiles(x86)%\VMware\Infrastructure\vSphere PowerCLI\Scripts\Initialize-PowerCLIEnvironment.ps1 ).

If you don't want to run the script, you could add those function definitions to your profile script


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Mulliganx
Enthusiast
Enthusiast
Jump to solution

Is there a module, or a snapin that I could add to it ?  Rather than adding each function?

0 Kudos
LucD
Leadership
Leadership
Jump to solution

These are just functions defined in the initialisation script.

No pssnapin nor module I'm afraid.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos