Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 250391

PowerCLI - VM+Datastore+Annotations script help?

$
0
0

Can someone help me in getting this script to pull the annotations field of the VM's please?

 

 

Get-Datacenter | Get-Datastore | Foreach-Object {
    $ds = $_.Name
    $_ | Get-VM | Select-Object Name,@{n='DataStore';e={$ds}}
} | Export-Csv C:\VMList.csv -NoTypeInformation -UseCulture

Viewing all articles
Browse latest Browse all 250391

Trending Articles