VMware Cloud Community
Deepa1970
Contributor
Contributor

Disable PowerCLI access

Is there a way to prevent a user to run PowerCLI against your vCenter? I have a user that is write very bad scripts and causing performance issues a lot, yet I am unable to remove vCenter access for politics from the user.

Reply
0 Kudos
3 Replies
SupreetK
Commander
Commander

AFAIK, this is not possible. Different roles for the same user just based on the medium of access (PowerCLI / Web Client) is not feasible yet. Might qualify as a feature request though Smiley Happy

Please consider marking this answer as "correct" or "helpful" if you think your questions have been answered.

Cheers,

Supreet

Reply
0 Kudos
diegodco31
Leadership
Leadership

Hi

No way to limit the vCenter access based on the application used to access it (web client/PowerCLI.)

All these use the same vSphere API under the covers.

See:

Block or Restricting execution of PowerCLI commands or Scripts

Please consider marking this answer "correct" or "helpful" if you think your question have been answered correctly.

Diego Oliveira
LinkedIn: http://www.linkedin.com/in/dcodiego
Reply
0 Kudos
LucD
Leadership
Leadership

Since the discussion linked to below, there have been some new features introduced for PowerShell.

The one you could be looking at would be JEA (Just Enough Administration).

It allows to restrict cmdlets for specific users.

The drawback, you will need to set up access through PowerCLI to the vSphere environment, via an endpoint.

See Just Enough Administration


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

Reply
0 Kudos