List of Unused vCenter Roles

This post was originally published on this site

Hi all.


I’m working on a review of unused vCenter roles in our environment and found this script below.


Get-VIPermission | Select Role, Principal, Entity, UID | Export-CSV “E:JCEMRights.csv”


However, it seems that it only getting the roles that are currently assigned.


Can anyone help how can I also pull the roles that are not being used?



Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.