Automation

 View Only
  • 1.  Get VM folder where a specific domain group has access.....

    Posted May 15, 2019 05:23 PM

    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



  • 2.  RE: Get VM folder where a specific domain group has access.....
    Best Answer

    Posted May 15, 2019 05:42 PM

    Something like this?

    $adGroup = 'DOMAIN\Group'

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

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



  • 3.  RE: Get VM folder where a specific domain group has access.....

    Posted May 17, 2019 08:04 PM

    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....



  • 4.  RE: Get VM folder where a specific domain group has access.....

    Posted May 17, 2019 08:11 PM

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



  • 5.  RE: Get VM folder where a specific domain group has access.....

    Posted May 17, 2019 09:22 PM

    It worked.

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



  • 6.  RE: Get VM folder where a specific domain group has access.....

    Posted May 17, 2019 09:37 PM

    Great!