VMware Cloud Community
COS
Expert
Expert
Jump to solution

Get VM folder where a specific domain group has access.....

In vCenter we use folders and set permissions to those folders.

Is there a way to get a list of folders that a known specific domain group has access?

Thanks

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Something like this?

$adGroup = 'DOMAIN\Group'

Get-Folder | Get-VIPermission -Principal $adGroup |

Select @{N = 'Folder'; E = { $_.Entity.Name } }, Role


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

View solution in original post

0 Kudos
5 Replies
LucD
Leadership
Leadership
Jump to solution

Something like this?

$adGroup = 'DOMAIN\Group'

Get-Folder | Get-VIPermission -Principal $adGroup |

Select @{N = 'Folder'; E = { $_.Entity.Name } }, Role


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

0 Kudos
COS
Expert
Expert
Jump to solution

That returned zero results. Even when I put our domain group for VMware.

EDIT:

Wiat, hold on, it found "vsphere.local\Administrators". Maybe my fat finger typing messed something up....

0 Kudos
LucD
Leadership
Leadership
Jump to solution

What does it return, more specifically in the Principal property, when you leave out the Principal parameter on the Get-VIPermission cmdlet?


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

0 Kudos
COS
Expert
Expert
Jump to solution

It worked.

My co-worker gave me a list of incorrect Domain Group names.

0 Kudos
LucD
Leadership
Leadership
Jump to solution

Great!


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

0 Kudos