Test-Cluster : You do not have administrative privileges on the server 'hlxssql01us1'. Attempted to perform an unauthorized operation. At line:1 char:1 + Test-Cluster + ~~~~~~~~~~~~ + CategoryInfo : PermissionDenied: (:) [Test-Cluster], C

Vinay M 0 Reputation points
2026-11-24T07:19:15.15+00:00

we have upgrade the os from windows 2016 to 2025 after that we are getting the failover clustere issue.
Test-Cluster : You do not have administrative privileges on the server 'hlxssql01us1'.

Attempted to perform an unauthorized operation.

At line:1 char:1

  • Test-Cluster
  • 
        + CategoryInfo          : PermissionDenied: (:) [Test-Cluster], ClusterCmdletException
    
        + FullyQualifiedErrorId : UnauthorizedAccess,Microsoft.FailoverClusters.PowerShell.TestClusterCommand  
    

please help to fix this ASAP

Windows for business | Windows Server | Storage high availability | Clustering and high availability
0 comments No comments

2 answers

Sort by: Most helpful
  1. Chen Tran 13,630 Reputation points Independent Advisor
    2026-11-24T09:02:43.6833333+00:00

    Hello Vinay,

    Thank you for posting question on Microsoft Windows Forum!

    Based on the provided error message "You do not have administrative privileges on the server 'hlxssql01us1". After upgrading a failover cluster from Windows Server 2016 directly to 2025. The possible causes for this might be a new, stricter security defaults in Windows Server 2025 that are blocking the cluster validation process, particularly around remote authentication and RPC or an unsupported upgrade path.

    The suggestion here is to verify the execution context and account privileges by opening PowerShell with "Run as administrator" directly on an upgraded cluster node and run the these command whoami and

    Get-LocalGroupMember -Group Administrators | Select-Object Name, PrincipalSource to verify the identity and its group membership. The account running the command must appear (directly or via a domain group) in the local Administrators group on every node. If you added the account to the group recently, sign out and sign back in to refresh the access token. Also, it is worth checking cluster permissions. From a node that can still query the cluster and run this PowerShell cmdlet Get-ClusterAccess to ensure your admin account or group has Full access on the cluster object.

    Another suggested troubleshooting step is to check event logs by opening Event Viewer. Navigate to this path Windows Logs → Security and System on hlxssql01us1 right after reproducing the error. Then look for Kerberos/NTLM failures, RPC access-denied events, or Credential Guard/LSA blocks.

    Another point I would like to emphasize here is that you mentioned upgrading directly from Windows Server 2016 to 2025. In fact, Microsoft's official guidance for a Cluster OS Rolling Upgrade is to only move to the next subsequent version (such as 2016 → 2019 → 2022 → 2025). Jumping multiple versions in-place is not a supported path and can leave the cluster in an inconsistent state with lingering compatibility issues. You are encouraged to consult the following article for more details.

    Hope this might help!

    Was this answer helpful?


  2. AI answer

    2026-11-24T07:20:59.4266667+00:00

    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:

    • whoami shows the intended administrative account.
    • That account, or one of its groups, appears in the local Administrators group.
    • Get-ClusterNode returns every node as Up.
    • If Get-ClusterNode also 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

    1. Troubleshoot PowerShell, Hyper-V, storage, and cluster management issues in Windows Server
    2. Failover cluster accounts overview
    3. Troubleshoot issues with accounts used by failover clusters
    4. Create a workgroup cluster
    5. Test-WorkgroupClusterRemoting-Syntax
    6. Plan your Windows Server upgrade
    7. Upgrade a Windows Server failover cluster with a cluster OS rolling upgrade
    8. 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
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.