Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 178040

PowerCLI won't work after clean, fresh installation

$
0
0

Hi All,

 

I was working on some nice Powershell scripts but after my laptop crash I cannot seem to get it working anymore.

Several clean, fresh installations of Windows 10 still i get errors;

 

my steps;

Installing Windows feature .NET 3.5 and .NET 4.5

In Powershell, I set the executionpolicy to unrestricted

Executing VMware-PowerCLI-6.3.0-3737840

After installation, I start PowerCLI, but the command connect-viserver is not available.

Even though I have issues, I still want to install VIToolkit (VMware-Vim4PS-1.5.0-142961)

 

After I've done that all, I want to start but all my modules are failing.
I do see them in

Get-Module -ListAvailable

 

ModuleType Version    Name                                ExportedCommands

---------- -------    ----                                ----------------

Binary     6.0.0.0    VMware.VimAutomation.Cis.Core

Binary     6.3.0.0    VMware.VimAutomation.Cloud

Manifest   6.3.0.0    VMware.VimAutomation.Common

Manifest   6.3.0.0    VMware.VimAutomation.Core

Binary     6.0.0.0    VMware.VimAutomation.HA

Binary     1.0.0.0    VMware.VimAutomation.License

Binary     6.0.0.0    VMware.VimAutomation.PCloud

Manifest   6.3.0.0    VMware.VimAutomation.SDK

Binary     6.0.0.0    VMware.VimAutomation.Storage

Binary     6.3.0.0    VMware.VimAutomation.Vds

Binary     6.3.0.0    VMware.VimAutomation.vROps

Binary     6.0.0.0    VMware.VumAutomation

 

 

When I load a script that will import them, I get the following errors;

 

PS C:\Users\Dave Greebe\Dropbox\Powershell_Scripts\PowerScripts_trunk\Single scripts> Import-Module VMware.VimAutomation.Cloud

Import-Module : Could not load file or assembly 'VMware.VimAutomation.ViCore.Types, Version=6.3.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

At line:1 char:1

+ Import-Module VMware.VimAutomation.Cloud

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

    + CategoryInfo          : NotSpecified: (:) [Import-Module], FileNotFoundException

    + FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.PowerShell.Commands.ImportModuleCommand

 

 

PS C:\Users\Dave Greebe\Dropbox\Powershell_Scripts\PowerScripts_trunk\Single scripts> Import-Module VMware.VimAutomation.Common

PS C:\Users\Dave Greebe\Dropbox\Powershell_Scripts\PowerScripts_trunk\Single scripts> Import-Module VMware.VimAutomation.Core

PS C:\Users\Dave Greebe\Dropbox\Powershell_Scripts\PowerScripts_trunk\Single scripts> Import-Module VMware.VimAutomation.HA

Import-Module : Could not load file or assembly 'VMware.VimAutomation.ViCore.Util10Ps, Version=5.1.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

At line:1 char:1

+ Import-Module VMware.VimAutomation.HA

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

    + CategoryInfo          : NotSpecified: (:) [Import-Module], FileNotFoundException

    + FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.PowerShell.Commands.ImportModuleCommand

 

 

PS C:\Users\Dave Greebe\Dropbox\Powershell_Scripts\PowerScripts_trunk\Single scripts> Import-Module VMware.VimAutomation.License

Exception calling "OnImportModule" with "2" argument(s): "A provider is not available for the following required component service: ViCoreService"

At C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\Modules\VMware.VimAutomation.License\Initialize-SDKComponent.ps1:1 char:1

+ [VMware.VimAutomation.Sdk.Interop.V1.CoreServiceFactory]::CoreService ...

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

    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException

    + FullyQualifiedErrorId : NotSupportedException

 

 

Import-Module : Could not load file or assembly 'VMware.VimAutomation.ViCore.Util10Ps, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

At line:1 char:1

+ Import-Module VMware.VimAutomation.License

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

    + CategoryInfo          : NotSpecified: (:) [Import-Module], FileNotFoundException

    + FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.PowerShell.Commands.ImportModuleCommand

 

 

PS C:\Users\Dave Greebe\Dropbox\Powershell_Scripts\PowerScripts_trunk\Single scripts> Import-Module VMware.VimAutomation.PClou

Import-Module : The specified module 'VMware.VimAutomation.PClou' was not loaded because no valid module file was found in any module directory.

At line:1 char:1

+ Import-Module VMware.VimAutomation.PClou

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

    + CategoryInfo          : ResourceUnavailable: (VMware.VimAutomation.PClou:String) [Import-Module], FileNotFoundException

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

 

 

PS C:\Users\Dave Greebe\Dropbox\Powershell_Scripts\PowerScripts_trunk\Single scripts> Import-Module VMware.VimAutomation.PClou

Import-Module : The specified module 'VMware.VimAutomation.PClou' was not loaded because no valid module file was found in any module directory.

At line:1 char:1

+ Import-Module VMware.VimAutomation.PClou

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

    + CategoryInfo          : ResourceUnavailable: (VMware.VimAutomation.PClou:String) [Import-Module], FileNotFoundException

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

 

 

PS C:\Users\Dave Greebe\Dropbox\Powershell_Scripts\PowerScripts_trunk\Single scripts> Import-Module VMware.VimAutomation.PCloud

Import-Module : Could not load file or assembly 'VMware.VimAutomation.ViCore.Types, Version=6.3.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

At line:1 char:1

+ Import-Module VMware.VimAutomation.PCloud

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

    + CategoryInfo          : NotSpecified: (:) [Import-Module], FileNotFoundException

    + FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.PowerShell.Commands.ImportModuleCommand

 

I really get this why its failing...

 

Hope that someone can help me with this...

 

Thanks in advance

 

Dave Greebe


Viewing all articles
Browse latest Browse all 178040

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>