Se connecter a un ESXi ou vCenter:
Connect-VIServer vc67.ludo.local
Lister les évènements a une date sous forme de tableau
Get-VIEvent -Start 23/08/2020 -Finish 25/08/2020 | Out-GridView
Exporter les évènements a une date
Get-VIEvent -Start 23/08/2020 -Finish 25/08/2020 | Export-Csv C:\Users\Ludo\Desktop\Events.csv
Lister les évènements d'une VM a une date sous forme de tableau. Ça peut être utile de savoir qui a éteint la VM.
Get-VIEvent -Entity "New Virtual Machine" -Start 23/08/2020 -Finish 25/08/2020 | Out-GridView

Afficher les datastore avec SIOC activé et le pourcentage
get-datastore | %{
$row = "" | Select Name,SIOCEnabled,SIOCThreshold,CongestionThresholdMode,PercentOfPeakThroughput
$row.Name = $_.Name
$row.SIOCEnabled = $_.Extensiondata.iormConfiguration.enabled
$row.SIOCThreshold = $_.Extensiondata.iormConfiguration.congestionThreshold
$row.CongestionThresholdMode = $_.Extensiondata.iormConfiguration.CongestionThresholdMode
$row.PercentOfPeakThroughput = $_.Extensiondata.iormConfiguration.PercentOfPeakThroughput
$row
} | Out-GridView

Lister les VMs
Get-VM | Select-Object -Property Name,Id,VMHost | Out-GridView
Comments est propulsé par CComment