Automation

 View Only
  • 1.  PowerCLi without admin rights

    Posted Dec 04, 2023 09:45 AM

    Hello!

    I am having some issues with PowerCLi. It seems like I have to start PowerShell as admin in order to get PowerCLi to connect to a VI server. Is this intended, or am I experiencing some issues with my computer?

    And second. if PowerCLi is for Admin use only, how can I let an account that is not admin to be able to use PowerCli?

     

    Kind regards Jens



  • 2.  RE: PowerCLi without admin rights

    Posted Dec 04, 2023 09:48 AM

    No, you don't have to start PS as an administrator to be able to use the Connect-VIServer cmdlet.
    It is the account that you use on the cmdlet that determines if you can access the vCenter.

    Any error messages?
    Did you already add the Verbose switch on the cmdlet to check if there is additional info?



  • 3.  RE: PowerCLi without admin rights

    Posted Dec 04, 2023 10:01 AM

    Hi

    I have tried the verbose flag. I got this error message when running as user:

    VERBOSE: Attempting to connect using SSPI
    VERBOSE: Connect successfully using SSPI
    ConnectVIServer: Specific methos is not supported

    I am logged on as the same user that I want to use to connect to my VI server (vSphere 7).

    Any ideas?

    Kind regards Jens



  • 4.  RE: PowerCLi without admin rights

    Posted Dec 04, 2023 10:59 AM

    You could try several actions.

    Stop/start your PS session.

    Use Connect-VIServer with the Credential parameter, avoiding the SSPI feature.

    Uninstall/install all PowerCLI modules.
    Use Get-Module to find where the modules are located, then with the File Explorer delete all those folders.