PowerCLI

 View Only
Expand all | Collapse all

Having trouble installing Power Cli

vmk2014

vmk2014Dec 09, 2018 06:45 PM

  • 1.  Having trouble installing Power Cli

    Posted Dec 09, 2018 05:57 PM

    Hi Everyone,

    ,

    I have successfully imported module for power cli but while checking power cli version it throws an error

    PS C:\Users\admin> Get-PowerCLIVersion

    Get-PowerCLIVersion : The 'Get-PowerCLIVersion' 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

    + Get-PowerCLIVersion

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

        + CategoryInfo          : ObjectNotFound: (Get-PowerCLIVersion:String) [], CommandNotFoundException

        + FullyQualifiedErrorId : CouldNotAutoloadMatchingModule

    PS C:\Users\admin> Connect-VIServer -Server 160.x.x.10 -Protocol https _user bu\rjk

    Connect-VIServer : The 'Connect-VIServer' command was found in the module 'VMware.VimAutomat

    could not be loaded. For more information, run 'Import-Module VMware.VimAutomation.Core'.

    At line:1 char:1

    + Connect-VIServer -Server 160.x.x.10 -Protocol https _user bu\rjk ...

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

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

        + FullyQualifiedErrorId : CouldNotAutoloadMatchingModule

    thanks

    vmk



  • 2.  RE: Having trouble installing Power Cli

    Posted Dec 09, 2018 06:34 PM

    Have you tried running 'Import-Module VMware.VimAutomation.Core' ?

    I guess this will also throw an error, but which one?



  • 3.  RE: Having trouble installing Power Cli

    Posted Dec 09, 2018 06:45 PM

    Yes, i tried and it throws an error.



  • 4.  RE: Having trouble installing Power Cli

    Posted Dec 09, 2018 07:11 PM

    It looks as if your PowerCLI installation is not correct, you might have a mix of versions installed.

    Can you run

    $PSVersionTable

    $env:PSModulePath.Split(';')

    Get-Module -Name VMware* -ListAvailable | Select Name,Version,ModuleBase

    Get-PSSnapin -Name VMware* -Registered

    Get-WmiObject -Class Win32_Product -Filter "name like '%PowerCLI%'" | Select Name,Version



  • 5.  RE: Having trouble installing Power Cli

    Posted Dec 10, 2018 04:18 AM

    Hi LucD,

    Please find the output. Before that i would to say in order to fix previous error, i did uninstalled power cli forcefully multiple times and even deleted VMware power cli folder from C drive but not resolved

    PS C:\temp> .\test.ps1

    Name                           Value

    ----                           -----

    PSVersion                      5.1.14393.2608

    PSEdition                      Desktop

    PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}

    BuildVersion                   10.0.14393.2608

    CLRVersion                     4.0.30319.42000

    WSManStackVersion              3.0

    PSRemotingProtocolVersion      2.3

    SerializationVersion           1.1.0.1

    C:\Users\adminmnt\Documents\WindowsPowerShell\Modules

    C:\Program Files\WindowsPowerShell\Modules

    C:\Windows\system32\WindowsPowerShell\v1.0\Modules

    C:\Program Files\Microsoft Monitoring Agent\Agent\PowerShell\

    C:\Program Files\Microsoft Monitoring Agent\Agent\AzureAutomation\7.3.396.0

    Name       : VMware.Vim

    Version    : 6.7.0.10334489

    ModuleBase : C:\Users\adminmnt\Documents\WindowsPowerShell\Modules\VMware.Vim\6.7.0.10334489

    Name       : VMware.VimAutomation.Cis.Core

    Version    : 11.0.0.10335701

    ModuleBase : C:\Users\adminmnt\Documents\WindowsPowerShell\Modules\VMware.VimAutomation.Cis.Core\11.0.0.10335701

    Name       : VMware.VimAutomation.Common

    Version    : 11.0.0.10334497

    ModuleBase : C:\Users\adminmnt\Documents\WindowsPowerShell\Modules\VMware.VimAutomation.Common\11.0.0.10334497

    Name       : VMware.VimAutomation.Sdk

    Version    : 11.0.0.10334495

    ModuleBase : C:\Users\adminmnt\Documents\WindowsPowerShell\Modules\VMware.VimAutomation.Sdk\11.0.0.10334495

    Get-PSSnapin : No Windows PowerShell snap-ins matching the pattern 'VMware*' were found. Check the pattern and then

    try the command again.

    At C:\temp\test.ps1:7 char:1

    + Get-PSSnapin -Name VMware* -Registered

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

        + CategoryInfo          : InvalidArgument: (VMware*:String) [Get-PSSnapin], PSArgumentException

        + FullyQualifiedErrorId : NoPSSnapInsFound,Microsoft.PowerShell.Commands.GetPSSnapinCommand



  • 6.  RE: Having trouble installing Power Cli

    Posted Dec 10, 2018 05:09 AM

    That all looks ok.
    One more thing, did you also delete the folder C:\Program Files (x86)\VMware\Infrastructure\, if it should still be there?

    Next step, can you run the following?

    Import-Module -Name VMware.PowerCLI -Verbose

    Get-Module -Name VMware*

    Something else you could try, provided you have access to a local administrator account on your station.

    Remove the current PowerCLI installation, and then install PowerCLI with the AllUsers scope.

    Install-Module -Name VMware.PowerCLI -Scope AllUsers -Confirm:$false



  • 7.  RE: Having trouble installing Power Cli

    Posted Dec 10, 2018 05:30 AM

    LucD,

    I did follow the steps and even did the clean un-installation but always throws an error after installation

    PS C:\temp> Get-Module VMware.PowerCLI -ListAvailable | Uninstall-Module -Force

    PS C:\temp> Get-Module -ListAvailable -Name VMware.* | where {$_.Version -like “11.0.0.*”} | Uninstall-Module -Force

    PS C:\temp> Get-Module -ListAvailable -Name VMware.*

        Directory: C:\Users\admin\Documents\WindowsPowerShell\Modules

    ModuleType Version    Name                                ExportedCommands

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

    Script     6.7.0.1... VMware.Vim

    PS C:\temp> Get-Module -ListAvailable -Name VMware.* | where {$_.Version -like “6.7.0.*”} | Uninstall-Module -Force

    PS C:\temp> Get-Module -ListAvailable -Name VMware.*

    PS C:\temp> Get-Module VMware* -ListAvailable

    PS C:\temp> Find-Module -Name VMware.PowerCLI

    Version    Name                                Repository           Description

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

    11.0.0.... VMware.PowerCLI                     PSGallery            This Windows PowerShell module contains VMware.P...

    PS C:\temp> Install-Module -Name VMware.PowerCLI -Scope AllUsers -Confirm:$false

    Untrusted repository

    You are installing the modules from an untrusted repository. If you trust this repository, change its

    InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to install the modules from

    'PSGallery'?

    [Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"): A

    PackageManagement\Install-Package : A command with name 'Export-VM' is already available on this system. This module

    'VMware.VimAutomation.Core' may override the existing commands. If you still want to install this module

    'VMware.VimAutomation.Core', use -AllowClobber parameter.

    At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1772 char:21

    + ...          $null = PackageManagement\Install-Package @PSBoundParameters

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

        + CategoryInfo          : InvalidOperation: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package],

       Exception

        + FullyQualifiedErrorId : CommandAlreadyAvailable,Validate-ModuleCommandAlreadyAvailable,Microsoft.PowerShell.Pack

       ageManagement.Cmdlets.InstallPackage



  • 8.  RE: Having trouble installing Power Cli

    Posted Dec 10, 2018 05:34 AM

    After installation it shows output

    PS C:\temp> Get-Module VMware* -ListAvailable

        Directory: C:\Program Files\WindowsPowerShell\Modules

    ModuleType Version    Name                                ExportedCommands

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

    Script     6.7.0.1... VMware.Vim

    Script     11.0.0.... VMware.VimAutomation.Cis.Core       {Connect-CisServer, Disconnect-CisServer, Get-CisService}

    Script     11.0.0.... VMware.VimAutomation.Common

    Script     11.0.0.... VMware.VimAutomation.Sdk

    PS C:\temp> Get-PowerCLIVersion

    Get-PowerCLIVersion : The term 'Get-PowerCLIVersion' 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.

    At line:1 char:1

    + Get-PowerCLIVersion

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

        + CategoryInfo          : ObjectNotFound: (Get-PowerCLIVersion:String) [], CommandNotFoundException

        + FullyQualifiedErrorId : CommandNotFoundException

    PS C:\temp>



  • 9.  RE: Having trouble installing Power Cli

    Posted Dec 10, 2018 05:41 AM

    When you run

    Get-Module -Name VMware* -ListAvailable

    you should see more lines (see my previous screenshot)



  • 10.  RE: Having trouble installing Power Cli

    Posted Dec 10, 2018 05:39 AM

    You shouldn't test on the module version for the uninstall.

    PowerCLI has multiple versions.

    The easiest is to just delete all folders starting with VMware.

    Or run

    Get-Module -Name VMware* -ListAvailable |

    Uninstal-Module -Force -Confirm:$false



  • 11.  RE: Having trouble installing Power Cli

    Posted Dec 10, 2018 05:53 AM

    sorry not allowing.

    PS C:\temp> Get-Module -Name VMware* -ListAvailable | Unistall-Module -Force -Confirm:$false

    Unistall-Module : The term 'Unistall-Module' 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.

    At line:1 char:43

    + Get-Module -Name VMware* -ListAvailable | Unistall-Module -Force -Con ...

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

        + CategoryInfo          : ObjectNotFound: (Unistall-Module:String) [], CommandNotFoundException

        + FullyQualifiedErrorId : CommandNotFoundException



  • 12.  RE: Having trouble installing Power Cli

    Posted Dec 10, 2018 05:56 AM

    I think you have a typo in there, that should be Uninstall-Module.



  • 13.  RE: Having trouble installing Power Cli

    Posted Dec 10, 2018 06:03 AM

    Yup, corrected it but same result  :smileysad:



  • 14.  RE: Having trouble installing Power Cli

    Posted Dec 10, 2018 06:06 AM

    Yes, now it worked.

    PS C:\temp> Get-Module -Name VMware* -ListAvailable |Uninstall-Module -Force -Confirm:$false

    PS C:\temp>

    PS C:\temp> Get-Module -Name VMware* -ListAvailable



  • 15.  RE: Having trouble installing Power Cli
    Best Answer

    Posted Dec 10, 2018 06:11 AM

    Ok, can you now try a fresh install?

    Install-Module -Name VMware.PowerCLI -Confirm:$false -AllowClobber -Force



  • 16.  RE: Having trouble installing Power Cli

    Posted Dec 10, 2018 06:22 AM

    Worked. You are awesome. Thank you once again.



  • 17.  RE: Having trouble installing Power Cli

    Posted Jun 12, 2019 09:08 AM

    hi ,

    I have also problems with installing PowerCLI version 6.5.1. I have stuck with this.

    here are some outputs.

    $env:PSModulePath

    C:\Users\adminnn\Documents\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules

    Get-PSRepository

    WARNING: Unable to find module repositories

    Get-Command -Module VMware.VimAutomation.Core

    nothing return

    PS C:\Windows\system32> Import-Module -Name PowerCli -Force

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

    At line:1 char:1

    + Import-Module -Name PowerCli -Force

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

        + CategoryInfo          : ResourceUnavailable: (PowerCli:String) [Import-Module], FileNotFoundException

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

    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

    PS C:\Windows\system32> Find-Module -name PowerCLI | Install-Module

    PackageManagement\Find-Package : No match was found for the specified search criteria and module name 'PowerCLI'. Try Get-PSRepository to see all available registered mo

    dule repositories.

    At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1397 char:3

    +         PackageManagement\Find-Package @PSBoundParameters | Microsoft ...

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

        + CategoryInfo          : ObjectNotFound: (Microsoft.Power...ets.FindPackage:FindPackage) [Find-Package], Exception

        + FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.FindPackage

    Get-Module -ListAvailable

    Directory: C:\Program Files\WindowsPowerShell\Modules

    ModuleType Version    Name                                ExportedCommands                                                                                              

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

    Script     1.0.1      Microsoft.PowerShell.Operation.V... {Get-OperationValidation, Invoke-OperationValidation}                                                         

    Binary     1.0.0.1    PackageManagement                   {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource...}                                        

    Script     3.4.0      Pester                              {Describe, Context, It, Should...}                                                                            

    Script     1.0.0.1    PowerShellGet                       {Install-Module, Find-Module, Save-Module, Update-Module...}                                                  

    Script     2.0.0      PSReadline                          {Get-PSReadLineKeyHandler, Set-PSReadLineKeyHandler, Remove-PSReadLineKeyHandler, Get-PSReadLineOption...}    

        Directory: C:\Windows\system32\WindowsPowerShell\v1.0\Modules

    ModuleType Version    Name                                ExportedCommands                                                                                              

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

    Manifest   1.0.0.0    ActiveDirectory                     {Add-ADCentralAccessPolicyMember, Add-ADComputerServiceAccount, Add-ADDomainControllerPasswordReplicationPol...

    Manifest   1.0.0.0    AppBackgroundTask                   {Disable-AppBackgroundTaskDiagnosticLog, Enable-AppBackgroundTaskDiagnosticLog, Set-AppBackgroundTaskResourc...

    Manifest   2.0.0.0    AppLocker                           {Get-AppLockerFileInformation, Get-AppLockerPolicy, New-AppLockerPolicy, Set-AppLockerPolicy...}              

    Manifest   1.0.0.0    AppvClient                          {Add-AppvClientConnectionGroup, Add-AppvClientPackage, Add-AppvPublishingServer, Disable-Appv...}             

    Manifest   2.0.1.0    Appx                                {Add-AppxPackage, Get-AppxPackage, Get-AppxPackageManifest, Remove-AppxPackage...}                            

    Script     1.0.0.0    AssignedAccess                      {Clear-AssignedAccess, Get-AssignedAccess, Set-AssignedAccess}                                                

    Manifest   1.0        BestPractices                       {Get-BpaModel, Get-BpaResult, Invoke-BpaModel, Set-BpaResult}                                                 

    Manifest   1.0.0.0    BitLocker                           {Unlock-BitLocker, Suspend-BitLocker, Resume-BitLocker, Remove-BitLockerKeyProtector...}                      

    Manifest   2.0.0.0    BitsTransfer                        {Add-BitsFile, Complete-BitsTransfer, Get-BitsTransfer, Remove-BitsTransfer...}                               

    Manifest   1.0.0.0    BranchCache                         {Add-BCDataCacheExtension, Clear-BCCache, Disable-BC, Disable-BCDowngrading...}                               

    Manifest   1.0.0.0    CimCmdlets                          {Get-CimAssociatedInstance, Get-CimClass, Get-CimInstance, Get-CimSession...}                                 

    Binary     2.0.0.0    ClusterAwareUpdating                {Get-CauPlugin, Register-CauPlugin, Unregister-CauPlugin, Invoke-CauScan...}                                  

    Manifest   1.0        ConfigCI                            {Get-SystemDriver, New-CIPolicyRule, New-CIPolicy, Get-CIPolicy...}                                           

    Manifest   1.0        Defender                            {Get-MpPreference, Set-MpPreference, Add-MpPreference, Remove-MpPreference...}                                

    Manifest   1.0.1.0    DeliveryOptimization                {Get-DeliveryOptimizationStatus, Get-DeliveryOptimizationPerfSnap, Get-DeliveryOptimizationLog, Get-DOConfig...

    Manifest   1.0        DFSN                                {Get-DfsnRoot, Remove-DfsnRoot, Set-DfsnRoot, New-DfsnRoot...}                                                

    Binary     2.0.0.0    DFSR                                {New-DfsReplicationGroup, Get-DfsReplicationGroup, Set-DfsReplicationGroup, Remove-DfsReplicationGroup...}    

    Manifest   2.0.0.0    DhcpServer                          {Add-DhcpServerInDC, Add-DhcpServerv4Class, Add-DhcpServerv4ExclusionRange, Add-DhcpServerv4Failover...}      

    Manifest   1.0.0.0    DirectAccessClientComponents        {Disable-DAManualEntryPointSelection, Enable-DAManualEntryPointSelection, Get-DAClientExperienceConfiguratio...

    Script     3.0        Dism                                {Add-AppxProvisionedPackage, Add-WindowsDriver, Add-WindowsCapability, Add-WindowsImage...}                   

    Manifest   1.0.0.0    DnsClient                           {Resolve-DnsName, Clear-DnsClientCache, Get-DnsClient, Get-DnsClientCache...}                                 

    Manifest   2.0.0.0    DnsServer                           {Add-DnsServerConditionalForwarderZone, Add-DnsServerDirectoryPartition, Add-DnsServerForwarder, Add-DnsServ...

    Manifest   1.0.0.0    EventTracingManagement              {Start-EtwTraceSession, New-EtwTraceSession, Get-EtwTraceSession, Update-EtwTraceSession...}                  

    Manifest   2.0.0.0    FailoverClusters                    {Add-ClusterCheckpoint, Add-ClusterDisk, Add-ClusterFileServerRole, Add-ClusterGenericApplicationRole...}     

    Manifest   1.0.0.0    GroupPolicy                         {Backup-GPO, Block-GPInheritance, Copy-GPO, Get-GPInheritance...}                                             

    Manifest   1.0.0.0    HgsClient                           {Get-HgsAttestationBaselinePolicy, Get-HgsClientConfiguration, Test-HgsClientConfiguration, Set-HgsClientCon...

    Script     1.1.0.0    IISAdministration                   {Get-IISAppPool, Start-IISCommitDelay, Stop-IISCommitDelay, Get-IISSite...}                                   

    Manifest   2.0.0.0    International                       {Get-WinDefaultInputMethodOverride, Set-WinDefaultInputMethodOverride, Get-WinHomeLocation, Set-WinHomeLocat...

    Manifest   2.0.0.0    IpamServer                          {Get-IpamDhcpConfigurationEvent, Remove-IpamDhcpConfigurationEvent, Get-IpamConfigurationEvent, Remove-IpamC...

    Manifest   1.0.0.0    iSCSI                               {Get-IscsiTargetPortal, New-IscsiTargetPortal, Remove-IscsiTargetPortal, Update-IscsiTargetPortal...}         

    Manifest   2.0.0.0    IscsiTarget                         {Add-ClusteriSCSITargetServerRole, Add-IscsiVirtualDiskTargetMapping, Checkpoint-IscsiVirtualDisk, Convert-I...

    Script     1.0.0.0    ISE                                 {New-IseSnippet, Import-IseSnippet, Get-IseSnippet}                                                           

    Manifest   1.0.0.0    Kds                                 {Add-KdsRootKey, Get-KdsRootKey, Test-KdsRootKey, Set-KdsConfiguration...}                                    

    Manifest   1.0.1.0    Microsoft.PowerShell.Archive        {Compress-Archive, Expand-Archive}                                                                            

    Manifest   3.0.0.0    Microsoft.PowerShell.Diagnostics    {Get-WinEvent, Get-Counter, Import-Counter, Export-Counter...}                                                

    Manifest   3.0.0.0    Microsoft.PowerShell.Host           {Start-Transcript, Stop-Transcript}                                                                           

    Manifest   1.0.0.0    Microsoft.PowerShell.LocalAccounts  {Add-LocalGroupMember, Disable-LocalUser, Enable-LocalUser, Get-LocalGroup...}                                

    Manifest   3.1.0.0    Microsoft.PowerShell.Management     {Add-Content, Clear-Content, Clear-ItemProperty, Join-Path...}                                                

    Script     1.0        Microsoft.PowerShell.ODataUtils     Export-ODataEndpointProxy                                                                                     

    Manifest   3.0.0.0    Microsoft.PowerShell.Security       {Get-Acl, Set-Acl, Get-PfxCertificate, Get-Credential...}                                                     

    Manifest   3.1.0.0    Microsoft.PowerShell.Utility        {Format-List, Format-Custom, Format-Table, Format-Wide...}                                                    

    Manifest   3.0.0.0    Microsoft.WSMan.Management          {Disable-WSManCredSSP, Enable-WSManCredSSP, Get-WSManCredSSP, Set-WSManQuickConfig...}                        

    Manifest   1.0        MMAgent                             {Disable-MMAgent, Enable-MMAgent, Set-MMAgent, Get-MMAgent...}                                                

    Manifest   1.0.0.0    MsDtc                               {New-DtcDiagnosticTransaction, Complete-DtcDiagnosticTransaction, Join-DtcDiagnosticResourceManager, Receive...

    Manifest   2.0.0.0    NetAdapter                          {Disable-NetAdapter, Disable-NetAdapterBinding, Disable-NetAdapterChecksumOffload, Disable-NetAdapterEncapsu...

    Manifest   1.0.0.0    NetConnection                       {Get-NetConnectionProfile, Set-NetConnectionProfile}                                                          

    Manifest   1.0.0.0    NetDiagnostics                      Get-NetView                                                                                                   

    Manifest   1.0.0.0    NetEventPacketCapture               {New-NetEventSession, Remove-NetEventSession, Get-NetEventSession, Set-NetEventSession...}                    

    Manifest   2.0.0.0    NetLbfo                             {Add-NetLbfoTeamMember, Add-NetLbfoTeamNic, Get-NetLbfoTeam, Get-NetLbfoTeamMember...}                        

    Manifest   1.0        NetLldpAgent                        {Enable-NetLldpAgent, Disable-NetLldpAgent, Get-NetLldpAgent}                                                 

    Manifest   1.0.0.0    NetNat                              {Get-NetNat, Get-NetNatExternalAddress, Get-NetNatStaticMapping, Get-NetNatSession...}                        

    Manifest   2.0.0.0    NetQos                              {Get-NetQosPolicy, Set-NetQosPolicy, Remove-NetQosPolicy, New-NetQosPolicy}                                   

    Manifest   2.0.0.0    NetSecurity                         {Get-DAPolicyChange, New-NetIPsecAuthProposal, New-NetIPsecMainModeCryptoProposal, New-NetIPsecQuickModeCryp...

    Manifest   1.0.0.0    NetSwitchTeam                       {New-NetSwitchTeam, Remove-NetSwitchTeam, Get-NetSwitchTeam, Rename-NetSwitchTeam...}                         

    Manifest   1.0.0.0    NetTCPIP                            {Get-NetIPAddress, Get-NetIPInterface, Get-NetIPv4Protocol, Get-NetIPv6Protocol...}                           

    Manifest   1.0.0.0    NetworkConnectivityStatus           {Get-DAConnectionStatus, Get-NCSIPolicyConfiguration, Reset-NCSIPolicyConfiguration, Set-NCSIPolicyConfigura...

    Manifest   1.0.0.0    NetworkController                   {Add-NetworkControllerNode, Disable-NetworkControllerNode, Enable-NetworkControllerNode, Get-NetworkControll...

    Manifest   1.0.0.0    NetworkControllerDiagnostics        {Get-NetworkControllerDeploymentInfo, Get-NetworkControllerManagedDevices, Debug-NetworkController, Debug-Ne...

    Manifest   2.0.0.0    NetworkLoadBalancingClusters        {Add-NlbClusterNode, Add-NlbClusterNodeDip, Add-NlbClusterPortRule, Add-NlbClusterVip...}                     

    Manifest   1.0.0.0    NetworkSwitchManager                {Disable-NetworkSwitchEthernetPort, Enable-NetworkSwitchEthernetPort, Get-NetworkSwitchEthernetPort, Remove-...

    Manifest   1.0.0.0    NetworkTransition                   {Add-NetIPHttpsCertBinding, Disable-NetDnsTransitionConfiguration, Disable-NetIPHttpsProfile, Disable-NetNat...

    Manifest   1.0        NFS                                 {Get-NfsMappedIdentity, Get-NfsNetgroup, Install-NfsMappingStore, New-NfsMappedIdentity...}                   

    Manifest   1.0.0.0    PcsvDevice                          {Get-PcsvDevice, Start-PcsvDevice, Stop-PcsvDevice, Restart-PcsvDevice...}                                    

    Binary     1.0.0.0    PersistentMemory                    {Get-PmemDisk, Get-PmemPhysicalDevice, Get-PmemUnusedRegion, New-PmemDisk...}                                 

    Manifest   1.0.0.0    PKI                                 {Add-CertificateEnrollmentPolicyServer, Export-Certificate, Export-PfxCertificate, Get-CertificateAutoEnroll...

    Manifest   1.0.0.0    PnpDevice                           {Get-PnpDevice, Get-PnpDeviceProperty, Enable-PnpDevice, Disable-PnpDevice}                                   

    Manifest   1.1        PrintManagement                     {Add-Printer, Add-PrinterDriver, Add-PrinterPort, Get-PrintConfiguration...}                                  

    Binary     1.0.11     ProcessMitigations                  {Get-ProcessMitigation, Set-ProcessMitigation, ConvertTo-ProcessMitigationPolicy}                             

    Script     3.0        Provisioning                        {Install-ProvisioningPackage, Export-ProvisioningPackage, Install-TrustedProvisioningCertificate, Export-Tra...

    Manifest   1.1        PSDesiredStateConfiguration         {Set-DscLocalConfigurationManager, Start-DscConfiguration, Test-DscConfiguration, Publish-DscConfiguration...}

    Script     1.0.0.0    PSDiagnostics                       {Disable-PSTrace, Disable-PSWSManCombinedTrace, Disable-WSManTrace, Enable-PSTrace...}                        

    Binary     1.1.0.0    PSScheduledJob                      {New-JobTrigger, Add-JobTrigger, Remove-JobTrigger, Get-JobTrigger...}                                        

    Manifest   2.0.0.0    PSWorkflow                          {New-PSWorkflowExecutionOption, New-PSWorkflowSession, nwsn}                                                  

    Manifest   1.0.0.0    PSWorkflowUtility                   Invoke-AsWorkflow                                                                                             

    Manifest   3.0.0.0    RemoteAccess                        {Add-DAAppServer, Add-DAClient, Add-DAClientDnsConfiguration, Add-DAEntryPoint...}                            

    Manifest   2.0.0.0    RemoteDesktop                       {Get-RDCertificate, Set-RDCertificate, New-RDCertificate, New-RDVirtualDesktopDeployment...}                  

    Manifest   1.0.0.0    ScheduledTasks                      {Get-ScheduledTask, Set-ScheduledTask, Register-ScheduledTask, Unregister-ScheduledTask...}                   

    Manifest   2.0.0.0    SecureBoot                          {Confirm-SecureBootUEFI, Set-SecureBootUEFI, Get-SecureBootUEFI, Format-SecureBootUEFI...}                    

    Script     2.0.0.0    ServerManager                       {Get-WindowsFeature, Install-WindowsFeature, Uninstall-WindowsFeature, Enable-ServerManagerStandardUserRemot...

    Cim        1.0.0.0    ServerManagerTasks                  {Get-SMCounterSample, Get-SMPerformanceCollector, Start-SMPerformanceCollector, Stop-SMPerformanceCollector...}

    Manifest   1.0.0.0    ShieldedVMDataFile                  {Import-ShieldingDataFile, New-ShieldingDataFile, New-VolumeIDQualifier, Save-VolumeSignatureCatalog...}      

    Manifest   1.0.0.0    ShieldedVMTemplate                  {Protect-TemplateDisk, Initialize-VMShieldingHelperVHD}                                                       

    Manifest   2.0.0.0    SmbShare                            {Get-SmbShare, Remove-SmbShare, Set-SmbShare, Block-SmbShareAccess...}                                        

    Manifest   2.0.0.0    SmbWitness                          {Get-SmbWitnessClient, Move-SmbWitnessClient, gsmbw, msmbw...}                                                

    Manifest   1.0.0.0    StartLayout                         {Export-StartLayout, Import-StartLayout, Export-StartLayoutEdgeAssets, Get-StartApps}                         

    Manifest   2.0.0.0    Storage                             {Add-InitiatorIdToMaskingSet, Add-PartitionAccessPath, Add-PhysicalDisk, Add-StorageFaultDomain...}           

    Manifest   1.0.0.0    StorageBusCache                     {Clear-StorageBusDisk, Disable-StorageBusCache, Disable-StorageBusDisk, Enable-StorageBusCache...}            

    Manifest   1.0.0.0    StorageQoS                          {Get-StorageQoSPolicy, Get-StorageQoSPolicyStore, Set-StorageQoSPolicyStore, Remove-StorageQoSPolicy...}      

    Manifest   1.0        StorageReplica                      {Test-SRTopology, New-SRGroup, Remove-SRGroup, Set-SRGroup...}                                                

    Manifest   2.0.0.0    TLS                                 {New-TlsSessionTicketKey, Enable-TlsSessionTicketKey, Disable-TlsSessionTicketKey, Export-TlsSessionTicketKe...

    Manifest   1.0.0.0    TroubleshootingPack                 {Get-TroubleshootingPack, Invoke-TroubleshootingPack}                                                         

    Manifest   2.0.0.0    TrustedPlatformModule               {Get-Tpm, Initialize-Tpm, Clear-Tpm, Unblock-Tpm...}                                                          

    Binary     2.1.639.0  UEV                                 {Clear-UevConfiguration, Clear-UevAppxPackage, Restore-UevBackup, Set-UevTemplateProfile...}                  

    Manifest   2.0.0.0    UpdateServices                      {Add-WsusComputer, Approve-WsusUpdate, Deny-WsusUpdate, Get-WsusClassification...}                            

        Directory: C:\Windows\system32\WindowsPowerShell\v1.0\Modules\PowerCLI

    ModuleType Version    Name                                ExportedCommands                                                                                              

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

    Script     6.7.0.1... VMware.DeployAutomation             {Add-DeployRule, Add-ProxyServer, Add-ScriptBundle, Copy-DeployRule...}                                       

    Script     6.7.0.1... VMware.ImageBuilder                 {Add-EsxSoftwareDepot, Add-EsxSoftwarePackage, Compare-EsxImageProfile, Export-EsxImageProfile...}            

    Manifest   11.2.0.... VMware.PowerCLI                                                                                                                                   

    Script     6.7.0.1... VMware.Vim                                                                                                                                        

    Script     11.2.0.... VMware.VimAutomation.Cis.Core       {Connect-CisServer, Disconnect-CisServer, Get-CisService}                                                     

    Script     11.0.0.... VMware.VimAutomation.Cloud          {Add-CIDatastore, Connect-CIServer, Disconnect-CIServer, Get-Catalog...}                                      

    Script     11.2.0.... VMware.VimAutomation.Common                                                                                                                       

    Script     11.2.0.... VMware.VimAutomation.Core           {Add-PassthroughDevice, Add-VirtualSwitchPhysicalNetworkAdapter, Add-VMHost, Add-VMHostNtpServer...}          

    Script     11.2.0.... VMware.VimAutomation.Hcx            {Connect-HCXServer, Disconnect-HCXServer, Get-HCXAppliance, Get-HCXApplianceCompute...}                       

    Script     7.6.0.1... VMware.VimAutomation.HorizonView    {Connect-HVServer, Disconnect-HVServer}                                                                       

    Script     10.0.0.... VMware.VimAutomation.License        Get-LicenseDataManager                                                                                        

    Script     11.2.0.... VMware.VimAutomation.Nsxt           {Connect-NsxtServer, Disconnect-NsxtServer, Get-NsxtPolicyService, Get-NsxtService}                           

    Script     11.2.0.... VMware.VimAutomation.Sdk            Get-ErrorReport                                                                                               

    Script     11.0.0.... VMware.VimAutomation.Security       {Get-SecurityInfo, Get-VTpm, Get-VTpmCertificate, Get-VTpmCSR...}                                             

    Script     11.2.0.... VMware.VimAutomation.Srm            {Connect-SrmServer, Disconnect-SrmServer}                                                                     

    Script     11.2.0.... VMware.VimAutomation.Storage        {Add-KeyManagementServer, Copy-VDisk, Export-SpbmStoragePolicy, Get-KeyManagementServer...}                   

    Script     1.3.0.0    VMware.VimAutomation.StorageUtility Update-VmfsDatastore                                                                                          

    Script     11.2.0.... VMware.VimAutomation.Vds            {Add-VDSwitchPhysicalNetworkAdapter, Add-VDSwitchVMHost, Export-VDPortGroup, Export-VDSwitch...}              

    Script     11.2.0.... VMware.VimAutomation.Vmc            {Connect-Vmc, Disconnect-Vmc, Get-VmcSddcNetworkService, Get-VmcService...}                                   

    Script     10.0.0.... VMware.VimAutomation.vROps          {Connect-OMServer, Disconnect-OMServer, Get-OMAlert, Get-OMAlertDefinition...}                                

    Script     6.5.1.7... VMware.VumAutomation                {Add-EntityBaseline, Copy-Patch, Get-Baseline, Get-Compliance...}                                             

       Directory: C:\Windows\system32\WindowsPowerShell\v1.0\Modules

    ModuleType Version    Name                                ExportedCommands                                                                                              

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

    Manifest   2.0.0.0    VpnClient                           {Add-VpnConnection, Set-VpnConnection, Remove-VpnConnection, Get-VpnConnection...}                            

    Manifest   1.0.0.0    Wdac                                {Get-OdbcDriver, Set-OdbcDriver, Get-OdbcDsn, Add-OdbcDsn...}                                                 

    Manifest   1.0.0.0    WebAdministration                   {Start-WebCommitDelay, Stop-WebCommitDelay, Get-WebConfigurationLock, Remove-WebConfigurationLock...}         

    Manifest   1.0.0.0    WindowsDeveloperLicense             {Get-WindowsDeveloperLicense, Unregister-WindowsDeveloperLicense, Show-WindowsDeveloperLicenseRegistration}   

    Script     1.0        WindowsErrorReporting               {Enable-WindowsErrorReporting, Disable-WindowsErrorReporting, Get-WindowsErrorReporting}                      

    Manifest   1.0.0.0    WindowsSearch                       {Get-WindowsSearchSetting, Set-WindowsSearchSetting}                                                          

    Manifest   1.0.0.0    WindowsUpdate                       Get-WindowsUpdateLog                                                                                          

    Manifest   1.0.0.2    WindowsUpdateProvider               {Get-WUAVersion, Get-WULastInstallationDate, Get-WULastScanSuccessDate, Get-WUIsPendingReboot...}    



  • 18.  RE: Having trouble installing Power Cli

    Posted Jun 12, 2019 10:15 AM

    You do seem to have the PowerCLI modules in the C:\Windows\system32\WindowsPowerShell\v1.0\Modules\PowerCLI folder?
    Any clue how they got there?
    I would suggest to delete those VMware folders in that folder, that is not where they belong.

    The correct line to find the PowerCLI modules is

    Find-Module -Name VMware.PowerCLI

    or
    Find-Module -Name VMware*


  • 19.  RE: Having trouble installing Power Cli

    Posted Jun 12, 2019 10:44 AM

    I deleted PowerCLI modules from C:\Windows\system32\WindowsPowerShell\v1.0\Modules\PowerCLI folder

    S C:\Windows\system32> Find-Module -Name VMware.PowerCLI

    PackageManagement\Find-Package : No match was found for the specified search criteria and module name 'VMware.PowerCLI'. Try Get-PSRepository to see all available regist

    ered module repositories.

    At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1397 char:3

    +         PackageManagement\Find-Package @PSBoundParameters | Microsoft ...

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

        + CategoryInfo          : ObjectNotFound: (Microsoft.Power...ets.FindPackage:FindPackage) [Find-Package], Exception

        + FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.FindPackage

    PS C:\Windows\system32> Find-Module -Name VMware*

    PS C:\Windows\system32>



  • 20.  RE: Having trouble installing Power Cli

    Posted Jun 12, 2019 10:49 AM

    Did you do that from a station that is able to access the Internet?
    Are you behind a proxy?

    Can you try to register the repository?

    Register-PSRepository -Name "PSGallery" –SourceLocation "https://www.powershellgallery.com/api/v2/" -InstallationPolicy Trusted



  • 21.  RE: Having trouble installing Power Cli

    Posted Jun 12, 2019 10:55 AM

    I have access to internet but there is a proxy. I try form public network also but I got same result.

    S C:\Windows\system32> Register-PSRepository -Name "PSGallery" –SourceLocation "https://www.powershellgallery.com/api/v2/" -InstallationPolicy Trusted

    Get-PSGalleryApiAvailability : PowerShell Gallery is currently unavailable.  Please try again later.

    At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:4095 char:9

    +         Get-PSGalleryApiAvailability -Repository $Name

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

        + CategoryInfo          : InvalidOperation: (:) [Get-PSGalleryApiAvailability], InvalidOperationException

        + FullyQualifiedErrorId : PowerShellGalleryUnavailable,Get-PSGalleryApiAvailability

    Register-PSRepository : Use 'Register-PSRepository -Default' to register the PSGallery repository.

    At line:1 char:1

    + Register-PSRepository -Name "PSGallery" –SourceLocation "https://www. ...

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

        + CategoryInfo          : InvalidArgument: (PSGallery:String) [Register-PSRepository], ArgumentException

        + FullyQualifiedErrorId : UseDefaultParameterSetOnRegisterPSRepository,Register-PSRepository



  • 22.  RE: Having trouble installing Power Cli

    Posted Jun 12, 2019 11:19 AM

    Did you try with

    Register-PSRepository -Default

    as well?



  • 23.  RE: Having trouble installing Power Cli

    Posted Jun 12, 2019 11:41 AM

    PS C:\Windows\system32> Register-PSRepository -Default

    PackageManagement\Register-PackageSource : Module Repository 'PSGallery' exists.

    At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:4211 char:17

    + ...     $null = PackageManagement\Register-PackageSource @PSBoundParamete ...

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

        + CategoryInfo          : ResourceExists: (Microsoft.Power...erPackageSource:RegisterPackageSource) [Register-PackageSource], Exception

        + FullyQualifiedErrorId : PackageSourceExists,Microsoft.PowerShell.PackageManagement.Cmdlets.RegisterPackageSource



  • 24.  RE: Having trouble installing Power Cli

    Posted Jun 12, 2019 11:44 AM

    If that entry already exists, you of course have to unregister it first.

    Unregister-PSRepository -Name PSGallery

    Register-PSRepository -Default



  • 25.  RE: Having trouble installing Power Cli

    Posted Jun 12, 2019 12:08 PM

    this is really annoying :smileysad:

    PS C:\Windows\system32> Unregister-PSRepository -Name PSGallery

    Get-PSGalleryApiAvailability : PowerShell Gallery is currently unavailable.  Please try again later.

    At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:4432 char:9

    +         Get-PSGalleryApiAvailability -Repository $Name

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

        + CategoryInfo          : InvalidOperation: (:) [Get-PSGalleryApiAvailability], InvalidOperationException

        + FullyQualifiedErrorId : PowerShellGalleryUnavailable,Get-PSGalleryApiAvailability



  • 26.  RE: Having trouble installing Power Cli

    Posted Jun 12, 2019 12:12 PM

    You are using rather old PowerShellGet version.
    Try to get your PowerShell environment in order first.
    You can try to follow the instructions in UPDATE POWERSHELLGET AND PACKAGEMANAGEMENT



  • 27.  RE: Having trouble installing Power Cli

    Posted Jun 13, 2019 08:16 AM

    hi ,

    I don't know what I didn't try , I must start over.

    PS C:\Windows\system32> Connect-VIServer  172.16.10.10

    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 'Imp

    ort-Module VMware.VimAutomation.Core'.

    At line:1 char:1

    + Connect-VIServer 172.16.10.10

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

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

        + FullyQualifiedErrorId : CouldNotAutoloadMatchingModule

    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



  • 28.  RE: Having trouble installing Power Cli

    Posted Dec 10, 2018 06:10 AM

    LucD,

    Do i need install again now ?

    thanks

    vmk



  • 29.  RE: Having trouble installing Power Cli

    Posted Dec 10, 2018 06:03 AM

    LucD,

    I didnt find any VMware folder under programm(x86) path

    S C:\temp> Get-Module -Name VMware* -ListAvailable | Unistal-Module -Force -Confirm:$false

    nistal-Module : The term 'Unistal-Module' is not recognized as the name of a cmdlet, function, script file, or

    perable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try

    gain.

    t line:1 char:43

    Get-Module -Name VMware* -ListAvailable | Unistal-Module -Force -Conf ...

                                               ~~~~~~~~~~~~~~

       + CategoryInfo          : ObjectNotFound: (Unistal-Module:String) [], CommandNotFoundException

       + FullyQualifiedErrorId : CommandNotFoundException

    thanks

    vmk



  • 30.  RE: Having trouble installing Power Cli

    Posted Dec 10, 2018 06:20 AM

    You have to configure PowerCLI to ignore an invalid certificate.

    Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false



  • 31.  RE: Having trouble installing Power Cli

    Posted Jun 14, 2019 09:55 AM

    I mange to install finally . But whet I try Get-Snapshot I getting an error .

    Get-Snapshot            Value cannot be found for the mandatory parameter VM

    At line:1 char:1

    + Get-Snapshot

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

        + CategoryInfo          : NotSpecified: (:) [Get-Snapshot], VimException

        + FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetSnapshot

    Get-Module -Name vmware.powercli -ListAvailable

        Directory: C:\Users\N0222\Documents\WindowsPowerShell\Modules

    ModuleType Version    Name                                ExportedCommands

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

    Manifest   11.2.0.... VMware.PowerCLI

        Directory: C:\Program Files\WindowsPowerShell\Modules

    ModuleType Version    Name                                ExportedCommands

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

    Manifest   6.5.4.7... VMware.PowerCLI

    Do I need to remove 6.5.4.7 PowerCLI ?



  • 32.  RE: Having trouble installing Power Cli

    Posted Jun 14, 2019 11:32 AM

    No,you can normally have different versions of the same module installed.
    The PS engine will pick the most recent version.

    Do you have all the other PowerCLI modules?

    Do a

    Get-Module -Name VMware* -ListAvailable



  • 33.  RE: Having trouble installing Power Cli

    Posted Jun 14, 2019 11:50 AM

    yes , I have

    Get-Module -Name VMware* -ListAvailable

        Directory: C:\Users\N0222\Documents\WindowsPowerShell\Modules

    ModuleType Version    Name                                ExportedCommands

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

    Script     6.7.0.1... VMware.DeployAutomation             {Add-DeployRule, Add-ProxyServer, Add-ScriptBundle, Copy-D...

    Script     6.7.0.1... VMware.ImageBuilder                 {Add-EsxSoftwareDepot, Add-EsxSoftwarePackage, Compare-Esx...

    Manifest   11.2.0.... VMware.PowerCLI

    Script     6.7.0.1... VMware.Vim

    Script     11.2.0.... VMware.VimAutomation.Cis.Core       {Connect-CisServer, Disconnect-CisServer, Get-CisService}

    Script     11.0.0.... VMware.VimAutomation.Cloud          {Add-CIDatastore, Connect-CIServer, Disconnect-CIServer, G...

    Script     11.2.0.... VMware.VimAutomation.Common

    Script     11.2.0.... VMware.VimAutomation.Core           {Add-PassthroughDevice, Add-VirtualSwitchPhysicalNetworkAd...

    Script     11.2.0.... VMware.VimAutomation.Hcx            {Connect-HCXServer, Disconnect-HCXServer, Get-HCXAppliance...

    Script     7.6.0.1... VMware.VimAutomation.HorizonView    {Connect-HVServer, Disconnect-HVServer}

    Script     10.0.0.... VMware.VimAutomation.License        Get-LicenseDataManager

    Script     11.2.0.... VMware.VimAutomation.Nsxt           {Connect-NsxtServer, Disconnect-NsxtServer, Get-NsxtPolicy...

    Script     11.2.0.... VMware.VimAutomation.Sdk            {Get-ErrorReport, Get-PSVersion, Get-InstallPath}

    Script     11.0.0.... VMware.VimAutomation.Security       {Get-SecurityInfo, Get-VTpm, Get-VTpmCertificate, Get-VTpm...

    Script     11.2.0.... VMware.VimAutomation.Srm            {Connect-SrmServer, Disconnect-SrmServer}

    Script     11.2.0.... VMware.VimAutomation.Storage        {Add-KeyManagementServer, Copy-VDisk, Export-SpbmStoragePo...

    Script     1.3.0.0    VMware.VimAutomation.StorageUtility Update-VmfsDatastore

    Script     11.2.0.... VMware.VimAutomation.Vds            {Add-VDSwitchPhysicalNetworkAdapter, Add-VDSwitchVMHost, E...

    Script     11.2.0.... VMware.VimAutomation.Vmc            {Connect-Vmc, Disconnect-Vmc, Get-VmcSddcNetworkService, G...

    Script     10.0.0.... VMware.VimAutomation.vROps          {Connect-OMServer, Disconnect-OMServer, Get-OMAlert, Get-O...

    Script     6.5.1.7... VMware.VumAutomation                {Add-EntityBaseline, Copy-Patch, Get-Baseline, Get-Complia...

        Directory: C:\Program Files\WindowsPowerShell\Modules

    ModuleType Version    Name                                ExportedCommands

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

    Manifest   6.5.4.7... VMware.PowerCLI

    Script     6.5.4.7... VMware.VimAutomation.HA             Get-DrmInfo

    Script     10.0.0.... VMware.VimAutomation.PCloud         {Connect-PIServer, Disconnect-PIServer, Get-PIComputeInsta...

    Binary     6.5.1.5... VMware.VimAutomation.PCloud         {Connect-PIServer, Disconnect-PIServer, Get-PIComputeInsta...



  • 34.  RE: Having trouble installing Power Cli

    Posted Jun 14, 2019 07:24 PM

    That looks ok.
    The Get-Snapshot requires a VM parameter, so try running

    Get-VM | Get-Snapshot



  • 35.  RE: Having trouble installing Power Cli

    Posted Dec 12, 2020 10:21 AM

    Check execution policy

    Get-ExecutionPolicy

    It should not be RESTRICTED otherwise Get-PowerCLIVersion will always return that error