- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Exactly what I was looking for... thanks.
&{foreach($vm in Get-VM){
Get-VIPermission -Entity $vm | Select -ExcludeProperty EntityId,ExtensionData,Uid -Property @{N="VM";E={$vm.Name}},*}} | Export-Csv C:\temp\outputfile.csv -NoTypeInformation -UseCulture
Output as follows for all VMs
| VM | Entity | Role | Principal | Propagate | IsGroup |
| LABBMC001 | Datacenters | Admin | Administrators | TRUE | TRUE |
| LABBMC001 | Datacenters | Admin | CBS\Domain Admins | TRUE | TRUE |