Skip to content

Instantly share code, notes, and snippets.

View ayesamson's full-sized avatar

Samson Loo ayesamson

  • Phoenix, AZ
View GitHub Profile
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 16:34
Extract a portion of the WSFC Cluster Log using two points of time.
function Get-ClusterLogDetails {
[CmdletBinding()]
param (
[Parameter(Mandatory, ValueFromPipeline)]
[string]$servername,
[Parameter(Mandatory, ValueFromPipeline)]
[string]$starttime,
[Parameter(Mandatory, ValueFromPipeline)]
[string]$endtime