FailoverCluster: Recent Cluster Events
Aus Wiki-WebPerfect
Version vom 24. Oktober 2018, 07:55 Uhr von Admin (Diskussion | Beiträge)
Show all ClusterEvents (starting at 12h ago until now)
$Clusters = Get-SCVMHostCluster | Sort ClusterName Foreach ($Cluster in $Clusters) { $FirstNode = ($Cluster.Nodes.ComputerName | Select -f 1) #Write-host $Cluster.ClusterName Write-Host $Cluster.ClusterName -ForegroundColor Green Get-WinEvent -ComputerName $FirstNode -FilterHashtable @{LogName="System";ProviderName="Microsoft-Windows-FailoverClustering";StartTime=(Get-Date).AddHours(-12);EndTime=(Get-Date)} }