Skip to content

Instantly share code, notes, and snippets.

Avatar

Samson Loo ayesamson

View GitHub Profile
View Extract specific error entries from today's WSFC Cluster Log
function Get-ClusterLogErrors {
[CmdletBinding()]
param (
[Parameter(Mandatory, ValueFromPipeline)]
[string]$servername
)
begin {
$filePath = "\\$($servername)\c$\Windows\Cluster\Reports\Cluster.log"
@ayesamson
ayesamson / Get-ClusterLogDetails
Last active May 3, 2017
Extract a portion of the WSFC Cluster Log using two points of time.
View Get-ClusterLogDetails
function Get-ClusterLogDetails {
[CmdletBinding()]
param (
[Parameter(Mandatory, ValueFromPipeline)]
[string]$servername,
[Parameter(Mandatory, ValueFromPipeline)]
[string]$starttime,
[Parameter(Mandatory, ValueFromPipeline)]
[string]$endtime