1 2 3 Previous Next 31 Replies Latest reply on Jun 14, 2019 12:23 PM by LucD Go to original post
      • 30. Re: Having trouble installing Power Cli
        zare_N0222 Novice

        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 ?

        • 31. Re: Having trouble installing Power Cli
          LucD Guru
          Community WarriorsUser ModeratorsvExpert

          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

           

          • 32. Re: Having trouble installing Power Cli
            zare_N0222 Novice

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

            • 33. Re: Having trouble installing Power Cli
              LucD Guru
              Community WarriorsvExpertUser Moderators

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

               

              Get-VM | Get-Snapshot

               

              1 person found this helpful
              1 2 3 Previous Next