Run Test-Cluster from an elevated Windows Server 2025 PowerShell session using an account that is an administrator on every cluster node, after confirming that the same identity can enumerate the cluster.
1. Identify whether authorization is the immediate failure
Run these commands directly on an upgraded cluster node—not initially through a scheduled task, service account, or remote session:
whoami
Import-Module FailoverClusters
Get-ClusterNode
Get-LocalGroupMember -Group Administrators |
Select-Object Name, PrincipalSource
Test-Cluster
Expected results:
-
whoamishows the intended administrative account. - That account, or one of its groups, appears in the local Administrators group.
-
Get-ClusterNodereturns every node asUp. - If
Get-ClusterNodealso returns access denied, the failure is the execution account/context rather than a particular validation test.
Cluster-management access-denied errors can occur when UAC, Group Policy, or insufficient rights restrict the current context. Scripts running as SYSTEM can also lack cluster permissions, particularly on passive nodes.^1^
For an AD-domain cluster, have an existing server administrator add the operating account or an appropriate domain group to Administrators on every node. If no such administrator access is available, this change must be performed by the domain/server administrator. Failover cluster administration accounts require administrative permissions on the cluster servers.^2^
After changing group membership, sign out and back in so that Windows creates a new access token, open Windows PowerShell → Run as administrator, and rerun:
Get-ClusterNode
Test-Cluster
Do not modify the Cluster Name Object (CNO) merely for this error. CNO/AD-object repair applies when the cluster computer account is disabled or loses permissions—for example, with events 1193, 1194, 1206, or 1207—not when an interactive user is rejected by Test-Cluster.^3^
2. If this is a workgroup cluster
Do not apply the domain-account instructions. Workgroup cluster nodes require a consistent local administrator account—same username and password—on every node, plus correctly configured WinRM trusted hosts. A nonbuilt-in local administrator can also require LocalAccountTokenFilterPolicy; registry changes should be backed up and carefully controlled.^4^
Windows Server 2025 provides this check:
$cred1 = Get-Credential # Node 1 local administrator
$cred2 = Get-Credential # Node 2 local administrator
Test-WorkgroupClusterRemoting `
-Node "Node1","Node2" `
-Credentials $cred1,$cred2
This tests remoting and verifies CredSSP configuration.^5^
3. Check how the 2016-to-2025 upgrade was performed
The permission correction does not establish that the cluster upgrade itself followed a supported path. Record these details before making cluster-functional-level or repair changes:
- Domain-joined or workgroup cluster
- SQL Server Failover Cluster Instance (FCI) or SQL Availability Group
- Nodes rebuilt/migrated or upgraded in place
- Nodes upgraded individually as a rolling upgrade or all upgraded directly
- Current OS version of every node
A direct Windows Server 2016 → 2025 in-place upgrade is supported for nonclustered systems. Cluster OS rolling upgrades can advance only one version at a time.^6^
The documented rolling-cluster path from 2016 to 2025 is sequential—2016 → 2019 → 2022 → 2025—or migration to a new cluster. However, that rolling-upgrade article explicitly covers Hyper-V and Scale-out File Server workloads, so do not treat it alone as confirmation for a SQL FCI or Availability Group topology; verify the SQL Server version and topology against the corresponding SQL Server support requirements before rollback or migration.^7^
If the cluster remains mixed-version, perform management from a node running the newer Windows Server version.^7^
4. Only if “Run as administrator” itself returns Access denied
Use the documented Secondary Logon Group Policy repair only when elevation, runas, or Run as different user is itself broken after the OS upgrade. Configure:
Computer Configuration → Policies → Windows Settings → Security Settings → System Services → Secondary Logon
Set the service to Enabled, startup mode Manual, and restore the documented service permissions.^8^
References
- Troubleshoot PowerShell, Hyper-V, storage, and cluster management issues in Windows Server
- Failover cluster accounts overview
- Troubleshoot issues with accounts used by failover clusters
- Create a workgroup cluster
- Test-WorkgroupClusterRemoting-Syntax
- Plan your Windows Server upgrade
- Upgrade a Windows Server failover cluster with a cluster OS rolling upgrade
- Error when you use the runas command, the Run as Administrator option, or the Run as a different user option after you upgrade Windows Server: Access is denied