Thanks Luc,
I got error message while running the script
Get-Stat : 7/30/2013 10:19:48 AM | Get-Stat | Object reference not set to an instance of an object. |
At C:\scripts\status.ps1:9 char:9
+ Get-Stat <<<< -Stat $stat -Start $start |
+ CategoryInfo | : NotSpecified: (:) [Get-Stat], VimException | |
+ FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetViStats |
Could you please add the export-csv option