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

Re: VM uptime?

$
0
0

Sorry i found How

 

 

$yearStart = Get-Date -Day 1 -Month 12 -Year 2012 -Hour 0 -Minute 0 -Second 0
$months = 11
$vms = Get-VM VM*
&{0..($months-1) | %{
  $start = $yearStart.AddMonths($_)
  $finish = $start.AddMonths(1).AddSeconds(-1)
   Get-VMUptime -VM $vms -Start $start -Finish $finish
}} |
Export-Csv C:\scriptvm\uptime\uptime.csv -NoTypeInformation -UseCulture
on luc website.;)

Viewing all articles
Browse latest Browse all 252940

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>