I would send me the vmkwarning logs per email:
foreach ($vmhost in get-cluster cluster04 | get-vmhost){
$log = get-log -key vmkwarning $vmhost
$mailBody = $mailBody`
+ $log.entries
}
$mailBody
But then the log entries are all on one line. How could I format this nicer?
Thanks, Daniel