Reply to Message

View discussion in a popup

Replying to:
vmCalgary
Enthusiast
Enthusiast

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.

Reply
0 Kudos