PowerCLI

 View Only
  • 1.  module for connect-viserver

    Posted Aug 29, 2019 06:46 AM

    Hi Luc,

    what module is providing connect-viserver and get-powercliversion commands .

    i have one powercli setup 6.0 and iam not able to find command connnect-viserveror get-powercliconfiguration .

    is there any quick way to get these commands .i think we need to import corresponding modules .

    can yu please suggest on these,



  • 2.  RE: module for connect-viserver

    Posted Aug 29, 2019 02:13 PM

    Both cmdlets are in the VMware.VimAutomation.Core module.

    You can check that with

    Get-Command -Name Connect-VIServer

    Get-Command -Name Get-PowerCLIConfiguration



  • 3.  RE: module for connect-viserver

    Posted Aug 30, 2019 05:34 AM

    when i launch powercli i got folowing .

    i tried to import module



  • 4.  RE: module for connect-viserver

    Posted Aug 30, 2019 06:33 AM

    Which PowerCLI version is that?
    It looks as if you are still using that old PowerCLI shortcut.
    If you use the all modules version, that shortcut should not be used anymore.

    Just start a regular PS console, and enter PowerCLI cmdlets.



  • 5.  RE: module for connect-viserver

    Posted Aug 30, 2019 07:39 AM

    from control pananel i found that its powercli 6.

    get-powercliversion command also not avaialble .

    and in powershell console vmwaremodules are not avaible .i cant run those commands .

    we have multiple accounts so this is one of the old powercli version.



  • 6.  RE: module for connect-viserver

    Posted Aug 30, 2019 12:34 PM

    Is that a version that still has PSSnapin?

    Can you upgrade the PowerCLI installation?



  • 7.  RE: module for connect-viserver

    Posted Aug 30, 2019 01:48 PM

    I think 6.0 has pssnapin only .modules started from 6.5 .is there a way to check this ?

    I m asking my team to upgrade to 11 if possible.



  • 8.  RE: module for connect-viserver

    Posted Aug 31, 2019 08:54 AM

    You can always run Get-PowerCLIVersion and Get-Module -Name VMware* -ListAvailable.



  • 9.  RE: module for connect-viserver

    Posted Sep 03, 2019 08:58 AM

    well get-powercliversion is not avaialble.and when i am importing modules i got the error mentioned in screenshot



  • 10.  RE: module for connect-viserver

    Posted Sep 03, 2019 09:06 AM

    Can you check what $env:PSMOdulePath.Split(';') returns?



  • 11.  RE: module for connect-viserver

    Posted Sep 03, 2019 12:27 PM

    Thanks I m checking this,