VMware Cloud Community
DhiyaKarthik
Contributor
Contributor

Connect-VIServer : Failed to connect: Could not load file or assembly 'VMware.Vim, Version=8.1.0.50

Connect-VIServer -Server "" -User "" -Password ""

Executed above commect but getting below error . Do we have any pre-requisites for VMware.PowerCLI 13.1.0

I have already installed .Net framework 4.8 and powershell 5.1 version but still getting below error

Connect-VIServer : Failed to connect: Could not load file or assembly
'VMware.Vim, Version=8.1.0.5065, Culture=neutral, PublicKeyToken=null' or one
of its dependencies. The system cannot find the file specified

 

 

 

Reply
0 Kudos
1 Reply
LucD
Leadership
Leadership

I suspect there are multiple PowerCLI versions installed.
Start by doing an

Get-Module -Name "VMware.*" -ListAvailable

and check if that looks normal (only one version).
Also, check what is in $env:PSModulePath and verify the module folders are in there.

A good way to check if your installation is having issues, try the same on another station with a fresh PowerCLI installation.


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

Reply
0 Kudos