Good morning,
I have downloaded and installed the module, PowerCLI, from https://developer.vmware.com/powercli , offline version. I created a folder in Powershell modules named PowerCLI. I tried to run the first command to connect to ESX blade and got the following error.
"PS C:\WINDOWS\system32> connect-viserver -server 'my server name'
connect-viserver : 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'.
At line:1 char:1
+ connect-viserver -server 172.20.6.133
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (connect-viserver:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CouldNotAutoloadMatchingModule"
I have tried running the command import-module command and got this:
"PS C:\WINDOWS\system32> Import-Module VMware.VimAutomation.Core
Import-Module : The specified module 'VMware.VimAutomation.Core' was not loaded because no valid module file was found in any module directory.
At line:1 char:1
+ Import-Module VMware.VimAutomation.Core
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (VMware.VimAutomation.Core:String) [Import-Module], FileNotFoundException
+ FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand"
Ran this command to get info Get-Module -Name VMware* -ListAvailable | Select Name,Version:
Name Version
---- -------
VMware.CloudServices 12.2.0.17531656
VMware.DeployAutomation 7.0.2.17849781
VMware.ImageBuilder 7.0.2.17849781
VMware.PowerCLI 12.3.0.17860403
VMware.Vim 7.0.2.17839075
VMware.VimAutomation.Cis.Core 12.3.0.17839331
VMware.VimAutomation.Cloud 12.0.0.15940183
VMware.VimAutomation.Common 12.3.0.17838947
VMware.VimAutomation.Core 12.3.0.17839688
VMware.VimAutomation.Hcx 12.3.0.17860192
VMware.VimAutomation.HorizonView 12.3.0.17806051
VMware.VimAutomation.License 12.0.0.15939670
VMware.VimAutomation.Nsxt 12.3.0.17843496
VMware.VimAutomation.Sdk 12.2.0.17531155
VMware.VimAutomation.Security 12.3.0.17833870
VMware.VimAutomation.Srm 12.3.0.17843071
VMware.VimAutomation.Storage 12.3.0.17855705
VMware.VimAutomation.StorageUtility 1.6.0.0
VMware.VimAutomation.Vds 12.3.0.17856667
VMware.VimAutomation.Vmc 12.2.0.17531704
VMware.VimAutomation.vROps 12.2.0.17532798
VMware.VimAutomation.WorkloadManagement 12.3.0.17856842
VMware.VumAutomation 12.1.0.16941488
So as you can see, automation.core is being seen but it won't load.
Some notes to keep in mind. I can't download the module via PowerShell as I have to install it as an admin and admins don't have access to the internet. So installing from PowerShell is out.
Any help would greatly be appreciated.