Having issues with offline installation

This post was originally published on this site

Hello,

 

I have a server(w2k16) that is used in prod and I cannot use the nuget package for installation. :

 

Using this post

https://blogs.vmware.com/PowerCLI/2018/01/powercli-offline-installation-walkthrough.html

 

I have attempted to do an offline install

 

  1.     Download zip https://code.vmware.com/web/tool/12.0.0/vmware-powercli
  2.     extract zip and place in $pshomeModules – for PRD that was –    PS C:Windowssystem32> C:WindowsSystem32WindowsPowerShellv1.0Modules
  3.     Run PS as admin

 

When I try to connect to my vCenter the autocomplete works, but I get this error.

 

PS C:Windowssystem32> Connect-VIServer 10.x.x.x

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 10.x.x.x

+ ~~~~~~~~~~~~~~~~

    + CategoryInfo          : ObjectNotFound: (Connect-VIServer:String) [], CommandNotFoundException

    + FullyQualifiedErrorId : CouldNotAutoloadMatchingModule

 

So I ran:

 

PS C:Windowssystem32> Import-Module VMware.VimAutomation.Cis.Core

Import-Module : Could not load file or assembly

‘file:///C:Windowssystem32WindowsPowerShellv1.0ModulesVMware.Vimnet45InternalVimService50.Wcf.dll’ or one of

its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)

At line:1 char:1

+ Import-Module VMware.VimAutomation.Cis.Core

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidOperation: (:) [Import-Module], FileLoadException

    + FullyQualifiedErrorId : FormatXmlUpdateException,Microsoft.PowerShell.Commands.ImportModuleCommand

 

For reference:

 

 

$PSVersionTable

 

Name Value

—- —–

PSVersion 5.1.14393.3866

PSEdition Desktop

PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}

BuildVersion 10.0.14393.3866

CLRVersion 4.0.30319.42000

WSManStackVersion 3.0

PSRemotingProtocolVersion 2.3

SerializationVersion 1.1.0.1

 

 

Is this the right process and where should I go from here?

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.