- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Great Code!! worked Great!!
just a Few Changes. I use get-view as the response is much faster for large environments. and added filter cause I only needed the users/groups from my domain.
&{foreach($vm in get-view -ViewType VirtualMachine){Get-VIPermission -Entity $vm.name | ?{$_.Principal -like "*<domain>*"} | Select -Property @{N="VM";E={$vm.Name}},Role,Principal}}