Hi There,
Want to know if there is a script to display all group members of a all group of a vcenter. spent all my day finding a way with no result.
already tried this one from Lucd but no member are displayed... My vcenter and powercli are 5.1
Get-VIPermission |
Select @{N="VIObject";E={$_.Entity.Name}},
Role,
Principal,
@{N="Members";E={
if($_.IsGroup){
$group = Get-QADGroup $_.Principal
$names = $group.AllMembers | %{Get-QADObject $_ | Select -ExpandProperty Name}
[string]::Join(',',$names)
}}} |
export-csv C:\processes.csv -UseCulture -NoTypeInformation
Anyone can help ?
Thx