VMware Cloud Community
Myretyr
Contributor
Contributor

PowerCLi without admin rights

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

--==[ VCP 5 ]==-- --==[ VCP 4 ]==--
Labels (1)
  • lo

Reply
0 Kudos
3 Replies
LucD
Leadership
Leadership

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?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
Myretyr
Contributor
Contributor

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

--==[ VCP 5 ]==-- --==[ VCP 4 ]==--
Reply
0 Kudos
LucD
Leadership
Leadership

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.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos