VMware Cloud Community
stratolynne
Contributor
Contributor

Trouble using Standard PowerCLI cmdlets

Hi all,

I'm a novice with using PowerCLI.

I have installed PowerCLI version 4.1.0-254719 and have been trying to get the Standard PowerCLI cmdlets working.

I don't have the shortkey on my desktop and I set default to the Program Files <x86>\VMware\VMware vSphere CLI \ bin and try to run the

Add-PSSnapin VMware.VIMAutomation.Core command and it is not recognized.

Can someone get me going on the right path here?  My real goal is to get the certs updated with the vifs command but I wanted to test out some list type commands first.

Appreciating any assistance with this.

0 Kudos
1 Reply
LucD
Leadership
Leadership

The PowerCLI prompt is also available under the Start button.

If not, something must have gone wrong during the installation.

The folder you are referring to is the folder where the CLI Tools are installed, not PowerCLI. That is in folder C:\Program Files\VMware\Infrastructure\vSphere PowerCLI.

When you start plain PowerShell, you can perform the Add-PSSnapin from that prompt.

Afaik there are no 'vifs' commands in PowerCLI. I suspect you are mixing PowerCLI and the CLI.

Perhaps you better raise your question in the vSphere Command-Line Interface community.


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

0 Kudos