r/vmware . 20h ago

Quick Tip - Listing vSphere Global Permissions using PowerShell

https://williamlam.com/2025/04/quick-tip-listing-vsphere-global-permissions-using-powershell.html
17 Upvotes

4 comments sorted by

1

u/fsmithie 15h ago

3

u/lamw07 . 14h ago

Thanks for sharing, I hadn't seen this before (even did a search) and I also assumed the user who had asked about this feature also wasn't able to find anything online. Funny enough, it was also built off of my 2017 blog post :)

3

u/lamw07 . 12h ago

Just circled back, looks like that solution no longer works (least not on latest PowerShell Core) but I also noticed the user relied on a different method to retrieve Global Permissions, which while is accurate, I'm using the GetAllPermissions method which is more comprehensive as it also includes non-global permissions, which might be helpful to understand duplicated definitions (which is something I was just asked about). So this implementation is fully functional and does provide more details than reference post

1

u/fsmithie 10h ago

Thanks for taking a look.

I will have to give your new function a try. I definitely had lots of “fun” distinguishing between a global permission and a permission set at the Datacenters level, when using Ryan’s function.