PowerShell: 5.1.17763.1007
PowerCLI: 11.5.0.14912921
.Net Framework: 4.7.2 release 461814
- Not able to connect to vCenter via powerCLI
- Get the following error:
The 'Connect-VIServer' command was found in the module 'VMware.VimAutomation.Core', but the module could not be loaded. For more information, run 'Import-Module VMware.VimAutomation.Core'.
- If we run an "Import-Module VMware.VimAutomation.Core" we get the following:
import-module the specified module 'vmware.vimautomation.core' was not loaded because no valid module file was found in any module directory
- We can confirm that all folders and files exist under c:\Program Files\WindowsPowerShell\Modules but it seems that the version is under 12.0.0 which was deleted previously
- We also tried version 12.0 but when trying to connect it gives the following error:
The term 'Connect-VIServer' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Screenshots attached