Skip to content

Windows Server Patching and Failover Cluster Maintenance

SOP-SYS-024 Standard Operating Procedure v1.0.0
Last Updated 2026-10-19
Author Systems Administration Team
πŸ’» Target OS / Systems:
Windows Server 2019/2022/2025 Failover Clusters (WSFC)Hyper-V Enterprise ClustersSQL Server AlwaysOn Availability GroupsStorage Spaces Direct (S2D) / Cluster Shared Volumes (CSV)

Before you begin

  • Applies to:Patching standalone Windows Server systems and Windows Server 2019, 2022, or 2025 failover clusters.
  • Where to start:Start from the administrative management console. For clusters, load the FailoverClusters module and check quorum and storage before taking a node out of service.
  • What you need:Have an approved maintenance window and update ring, healthy cluster capacity for node maintenance, workload health checks, and the rollback plan.
Guide tools
Guide tools
0/0 Steps (0%)

Scope, Governance & Cluster Architecture

This standard operating procedure governs the monthly maintenance, security update installation, and operational reboot sequencing for Windows Server standalone systems and Windows Server Failover Clusters (WSFC) (including Hyper-V virtualization hosts, SQL Server AlwaysOn Availability Groups, and Scale-Out File Servers).

All patching must adhere to the change management windows defined in STD-OPS-002 and the ring approval tiers established in SOP-SYS-023. Zero unplanned downtime to clustered applications or virtual machines is tolerated during maintenance.

Windows Server Failover Cluster (WSFC) Sequential Patching Pipeline covering quorum baseline audit, live migration node draining, update application and reboot, failback verification, and sequential partner node progression

Sequential Cluster Patching Pipeline: Pre-flight quorum and storage validation, live migration node evacuation (Suspend-ClusterNode -Drain), staged security update installation and reboot, node resumption and role failback (Resume-ClusterNode -Failback), followed by sequential iteration across surviving cluster nodes.


Pre-Flight Quorum & Storage Health Gates

Execute from an administrative management console using the FailoverClusters PowerShell module before initiating any node maintenance.

01

Validate Cluster Quorum Baseline & Witness Health

Quorum Audit

Verify that the cluster quorum mode is properly configured and that the witness (Cloud Witness, File Share Witness, or Disk Witness) is fully online with 100% voting health.

Terminal window
Import-Module FailoverClusters
# 1. Inspect Cluster Quorum Status
Get-ClusterQuorum | Format-List QuorumType, QuorumResource
# 2. Inspect Cluster Node Votes and Status
Get-ClusterNode | Select-Object Name, State, NodeWeight, DynamicWeight
❯ Illustrative Output (Results Vary)
QuorumType : NodeAndWitnessMajority
QuorumResource : File Share Witness
Name State NodeWeight DynamicWeight
---- ----- ---------- -------------
NODE-01 Up 1 1
NODE-02 Up 1 1

02

Validate Cluster Shared Volumes (CSV) and Storage Spaces Direct

Storage Health

Ensure the storage subsystem is healthy and that no background repair, disk rebuild, or scrubbing tasks are in flight before draining nodes.

Terminal window
# Check Cluster Shared Volume states
Get-ClusterSharedVolume | Select-Object Name, State, VolumePaths
# If running Storage Spaces Direct (S2D):
Get-VirtualDisk | Select-Object FriendlyName, HealthStatus, OperationalStatus
Get-StorageJob
❯ Illustrative Output (Results Vary)
Name State VolumePaths
---- ----- -----------
Cluster Disk Online {C:\ClusterStorage\Volume1}
FriendlyName HealthStatus OperationalStatus
------------ ------------ -----------------
CSV_DATA Healthy OK

Execution: Phase 1 β€” Node Draining & Role Evacuation

03

Gracefully Pause and Drain Workloads from Target Node

Node Draining

Place the target node (NODE-01) into a paused state and trigger automated Live Migration of all hosted Virtual Machines and clustered roles to surviving partner nodes.

Terminal window
$TargetNode = "NODE-01"
Write-Host "[-] Draining all clustered roles from $TargetNode..." -ForegroundColor Cyan
Suspend-ClusterNode -Name $TargetNode -Drain -Wait
# Verify all roles evacuated cleanly
Get-ClusterNode -Name $TargetNode | Select-Object Name, State
Get-ClusterGroup | Where-Object OwnerNode -eq $TargetNode
❯ Illustrative Output (Results Vary)
Name State
---- -----
NODE-01 Paused
OwnerNode returns null (all roles successfully migrated).

Execution: Phase 2 β€” Patch Ingestion & Staged Installation

04

Scan and Install Approved Security Updates

Update Ingestion

Connect via remote PowerShell session to the drained node and initiate patch installation from enterprise WSUS.

Terminal window
Enter-PSSession -ComputerName "NODE-01"
# Query and install pending security updates via PSWindowsUpdate:
Install-WindowsUpdate -MicrosoftUpdate -AcceptAll -IgnoreReboot -Verbose
# Or inspect COM update searcher status:
$Session = New-Object -ComObject Microsoft.Update.Session
$Searcher = $Session.CreateUpdateSearcher()
$SearchResult = $Searcher.Search("IsInstalled=0 and Type='Software'")
Write-Host "Updates to install: $($SearchResult.Updates.Count)"
❯ Illustrative Output (Results Vary)
X Status KB Size Title
- ------ -- ---- -----
2 Installed KB5039212 580MB 2026-10 Cumulative Update for Windows Server 2022
Installation Result Code: 2 (Succeeded)

Execution: Phase 3 β€” Controlled Reboot & Kernel Verification

05

Execute Controlled Node Reboot and Validate Service Health

Kernel Reboot

Reboot the patched node and monitor system startup, MPIO storage path recovery, and cluster service health.

Terminal window
# Trigger controlled restart
Restart-Computer -ComputerName "NODE-01" -Force -Wait -For PowerShell -Timeout 600
# Once back online, verify Cluster Service state:
Get-Service -ComputerName "NODE-01" -Name "ClusSvc" | Select-Object Status, StartType
# Verify MPIO storage path count on target node:
Invoke-Command -ComputerName "NODE-01" -ScriptBlock {
mpclaim -s -d
}
❯ Illustrative Output (Results Vary)
Status StartType
------ ---------
Running Automatic
MPIO paths report active and optimized across all storage targets.

Execution: Phase 4 β€” Node Resumption & Workload Failback

06

Resume Cluster Node and Validate Role Failback

Workload Resume

Unpause the updated node and verify that clustered workloads can live migrate and balance back cleanly.

Terminal window
# Resume cluster node and restore original role ownership
$TargetNode = "NODE-01"
Write-Host "[-] Resuming $TargetNode..." -ForegroundColor Cyan
Resume-ClusterNode -Name $TargetNode -Failback Immediate
# Validate node state
Get-ClusterNode -Name $TargetNode | Select-Object Name, State
# Execute live migration test: Move test VM to target node
Move-ClusterVirtualMachineRole -Name "VM-TEST-01" -Node $TargetNode
❯ Illustrative Output (Results Vary)
Name State
---- -----
NODE-01 Up
VM-TEST-01 migrated to NODE-01 with 0 dropped packets during live transition.

Execution: Phase 5 β€” Sequential Progression on Partner Nodes

07

Repeat Draining and Patching Sequentially on Partner Nodes

Sequential Iteration

Never drain or patch more than one cluster node simultaneously. Verify full storage and quorum convergence before initiating maintenance on partner nodes (NODE-02, NODE-03).

Terminal window
# Verify cluster quorum is 100% stable before proceeding to next node
$Unhealthy = Get-ClusterNode | Where-Object State -ne 'Up'
if ($Unhealthy.Count -gt 0) {
throw "ABORT: Unhealthy nodes detected in cluster. Do NOT proceed with partner node."
} else {
Write-Host "[+] Quorum fully healthy. Safe to proceed with NODE-02 maintenance." -ForegroundColor Green
}
❯ Illustrative Output (Results Vary)
[+] Quorum fully healthy. Safe to proceed with NODE-02 maintenance.
Repeat Steps 03 through 06 for each consecutive node until all nodes match patch baseline.

08

Validate Forest & Cluster Health Post-Patching

Sanity Check

Execute post-maintenance sanity checks to verify all cluster resources, CSVs, and virtual machines are running normally.

Terminal window
# 1. Check for any non-online cluster resources
Get-ClusterResource | Where-Object State -ne 'Online'
# 2. Check VM health across all nodes
Get-VM | Select-Object Name, State, Status, ComputerName | Where-Object State -ne 'Running'
# 3. Check Hyper-V event log for live migration warnings
Get-WinEvent -LogName "Microsoft-Windows-Hyper-V-High-Availability-Admin" -MaxEvents 10 |
Where-Object { $_.LevelDisplayName -in @("Error", "Warning") }
❯ Illustrative Output (Results Vary)
Get-ClusterResource returns null (all resources online).
All VMs report State: Running and Status: Operating normally.
Zero critical migration warnings logged.

Emergency Rollback & Approvals

09

Drain Impacted Node and Roll Back Offending KB

Rollback KB

If a cumulative update causes hypervisor kernel panics, CSV volume dismounts, or VM BSODs, evacuate workloads from the malfunctioning node and remove the update via DISM.

Terminal window
# 1. Drain the failing node immediately
Suspend-ClusterNode -Name "NODE-01" -Drain -Wait
# 2. Identify the offending KB package name
$KB = (Get-WindowsPackage -Online | Where-Object { $_.PackageName -like "*5039212*" }).PackageName
# 3. Uninstall the package via DISM
if ($KB) {
Write-Host "[-] Uninstalling offending package: $KB" -ForegroundColor Red
Remove-WindowsPackage -Online -PackageName $KB -NoRestart
Restart-Computer -Force
}
# 4. In WSUS Console: Decline update immediately to prevent partner nodes from installing
(Get-WsusServer).SearchUpdates("5039212") | ForEach-Object { $_.Decline() }

Operational Compliance & Approvals

Maintenance MilestoneVerification RequirementApproverSign-Off
Quorum Pre-Flight100% node voting weights active; witness onlineSystems Administration TeamApproved
Zero-Downtime DrainingVM live migration completed without dropped sessionsSystems Administration TeamApproved
Sequential ExecutionSingle-node iteration enforced throughout windowInfrastructure OperationsApproved
Storage ConvergenceCSV volumes remain healthy and fully onlineSystems Administration TeamApproved
Post-Patch Sign-OffAll clustered resources report Online statusLead Systems AdministratorApproved

Comments