• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 201
  • Last Modified:

vCenter - Roles and Permission Information

What is the best way to extract "Roles and Permission" from vCenter ?
0
Hitesh
Asked:
Hitesh
1 Solution
 
Alessandro ScafariaCommented:
You may perform this task throught some vSphere PowerCLI commands:

1.      Download and install vSphere PowerCLI into your vCenter Server

http://blogs.vmware.com/PowerCLI/2011/06/back-to-basics-part-1-installing-powercli.html

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:

Connect-VIServer 

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.
0
 
HiteshAuthor Commented:
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
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now