I installed vSphere PowerCLI 5.5 on a Windows 7 32bit box and on a Windows 8.1 64bit box.
I try to run a .ps1 script that starts with lines like:
Add-PSSnapin VMware.VimAutomation.Core
Connect-VIServer ...
get-vm ...
On both PCs I get the same error:
Add-PSSnapin : No snap-ins have been registered for Windows PowerShell version 4. (version 2 for the Windows 7 PC)
In <filename>.ps1:1 car:1
+ Add-PSSnapin VMware.VimAutomation.Core
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (VMware.VimAutomation.Core:String) [Add-PSSnapin], PSArgumentException
+ FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand
While installing vSphere PowerCLI 5.5 I got no error.
On the Windows 7 PC there is WMware Player installed, in the Windows 8.1 PC there is VMware Workstation installed.
My scripts worked fine on a Windows XP box.
Is there anything I should do after installing vSphere PowerCLI 5.5?
Is there any releevant step I am missing?
Regards
marius
It doesn't look like you have PowerCLI installed.
You do seem to have the CLI installed, but that is not PowerCLI.
Btw, the PowerCLI folder is a subfolder in the Infrastructure folder.
I would suggest to start from a clean PC, no other VMware products installed.
Or try to uninstall what you have on the PC you showed, and remove the folders, should there be any left after the uninstalls.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
You say you didn't get any error messages while installing on the boxes ?
Are the required .Net version present on these boxes, they are not there by default on Windows 8.1
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
I installed via Control Panel ".NET Framework 3.5 (includes 2.0 and 3.0)".
I am unable to install SP1.
Can this be the issue?
Regards
marius
You mean via the Turn Windows Features On or Off ?
Does PowerCLI, and the VMRC and Vix packages, show up in the Program and Features panel ?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thank you for your support.
Yes, I see .NET Framework enabled (my PC is Italian, like me):
VMware VIX is installed but I don't see it via Control Panel:
What else should I check?
regards
I don't see VMware vSPhere PowerCLI either in your Programs and Features.
It looks like it wasn't installed.
What folders are under %ProgramFiles%\VMware ?
Is there a VMware Vix folder ? And is there a Infrastructure\vSphere PowerCLI folder ?
Do you have a station with any other VMware products on there ?
It would be good to test the installation from there.
And perhaps go for the latest version, PowerCLI 5.8 R1
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thank you for your message.
I am confused, because the installed VMware features are as follows:
while the contents of the C:\program files (x86)\vmware folder are as follows:
I don't remember I installed VMware VIX: maybe it was installed by VMware Workstation or VMware Converter?
What do you mean "a station with any other VMware products on there ?"
Do you mean a PC with no other VMware products installed or a PC with other VMware products installed?
If necessary I can uninstall VMware Workstation, VMware Converter and PowerCLI and delete the related folders: do you think it can solve?
Regards
marius
It doesn't look like you have PowerCLI installed.
You do seem to have the CLI installed, but that is not PowerCLI.
Btw, the PowerCLI folder is a subfolder in the Infrastructure folder.
I would suggest to start from a clean PC, no other VMware products installed.
Or try to uninstall what you have on the PC you showed, and remove the folders, should there be any left after the uninstalls.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference