vCenter - Roles and Permission Information

Posted on 2015-02-19
Medium Priority
Last Modified: 2015-02-23
What is the best way to extract "Roles and Permission" from vCenter ?
Question by:Hitesh

Accepted Solution

Alessandro Scafaria earned 2000 total points
ID: 40620742
You may perform this task throught some vSphere PowerCLI commands:

1.      Download and install vSphere PowerCLI into your vCenter Server


2.      Bypass Powershell execution security

Open a Powershell session (both 64 and 32 bits) and write this command:

set-executionpolicy remotesigned

Open in new window

3.      Open a PowerCLI shell from Start Menu--->All Programs-->VMware--->PowerCLI

Perform this commands:


Open in new window

and then insert the IP or FQDN of your Vcenter Server

Get-VIPermission | Select Role, Principal, Entity, UID | Export-CSV “C:\Rights.csv”

Open in new window

Now you have a CSV file with all Vcenter Roles and Permissions exported.

Author Closing Comment

ID: 40627116
Fantastic, thank you very very much. This is exactly what I was looking for.

One more question, Can you please let me know how can I extract Datastore information (Name, size, VMs, connected ESX host, free space etc..)

Your help will be much appreciated. Thanks

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

This article outlines why you need to choose a backup solution that protects your entire environment – including your VMware ESXi and Microsoft Hyper-V virtualization hosts – not just your virtual machines.
In this article will go through how to backup a vPostgres DB from a broken vCenter Appliance and restore to a new vCenter Appliance.
Teach the user how to use create log bundles for vCenter Server or ESXi hosts Open vSphere Web Client: Generate vCenter Server and ESXi host log bundle:  Open vCenter Server Appliance Web Management interface and generate log bundle: Open vCenter Se…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question