- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
With Folder:
$principal = '<domain>\<user_group>'
Get-VM | where{(Get-VIPermission -Entity $_).Principal -contains $principal} |
Select Name,Folder,@{N='Datastore';E={(Get-Datastore -RelatedObject $_).Name -join '|'}},
@{N='Cluster';E={(Get-Cluster -VM $_).Name}} | Export-csv c:\users\<me>\<filename.csv> -NoClobber
Now I'm ready to make an environment in vRealize and do forecasting for the group and give them read-only access to the datastores and clusters. Thanks for your help.