VMware Cloud Community
dmustakasjr
Contributor
Contributor

How do I output VirtualCenter folder Permissions using Powershell?

I need to find a way to output the folder/virtualmachine role permissions to a document or spreadsheet. When in VC using the Virtual Machines & Templates inventory view you can see all of your datacenters and folders listed. I need to output the list of the entire structure to file. I tried the Appendix: Perl Script for listing all role assignments in the [http://www.vmware.com/pdf/vi3_vc_roles.pdf]. That only tells me the VM permissions and I need all child folder permissions. Any help would be greatly appreciated.

vRico Virtualization Enthusiast VCP 3&4, MCITP EA and a bunch of other stuff
Tags (1)
0 Kudos
1 Reply
LucD
Leadership
Leadership

If PowerShell v2 CTP3 is an option in your environment you could use the VITK Extensions.

You can find some examples here.

If PS v2 is not an option then you can use the RetrieveEntityPermissions method from the SDK.

See


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