How to uninstall PowerCLI on NM client.


Issue

When attempting to run the Connect-VIserver -server command to connect to a VMS server. Received error "Connect-VIServer: Could not load file or assembly....or one of its dependencies. The system cannot find the file specified."

Environment

NM client

VMware

VMS

PowerCLI

Resolution

You can uninstall VMware PowerCLI by deleting the VMware PowerCLI modules from the NM client.

To find the location of the VMware.PowerCLI modules on the NM client, run Get-Module -ListAvailable VMware* in Powershell.

Pasted image.png

 

Navigate to the directory in File Explorer and delete all of the modules that start with VMware. Then reinstall PowerCLI from the VMware vSphere Configuration media, procedure(Installing VMware PowerCLI) in the Virtual Management Server Software User Guide.