Service account unable to execute powershell commands (Get-Cluster)

Anonymous
2024-12-24T13:32:58+00:00

We have created service account in active directory. The user is assigned to administrator, Hyper-v administrator group. Also under the failover cluster settings the service account is assigned full permissions. But when we logged into the user and try to run "Get-Cluster" command it says access denied.

Below is the error from an application called Dynatrace


Error running self.initialize ExtensionImpl(name=hyperv, version=2.2.11): PowershellException('Get-Cluster : You do not have administrative privileges on the cluster. Contact your network administrator to request \naccess.\n    Access is denied\nAt line:1 char:1\n+ Get-Cluster | Format-List\n+ ~~~~~~~~~~~\n    + CategoryInfo          : AuthenticationError: (:) [Get-Cluster], ClusterCmdletException\n    + FullyQualifiedErrorId : ClusterAccessDenied,Microsoft.FailoverClusters.PowerShell.GetClusterCommand\n'); Datasource has exited and will be starting shortly

Error from powershell

> Get-Cluster
Get-Cluster : You do not have administrative privileges on the cluster. Contact your network administrator to request
access.
    Access is denied
At line:1 char:1

  • Get-Cluster

    + CategoryInfo          : AuthenticationError: (:) [Get-Cluster], ClusterCmdletException     + FullyQualifiedErrorId : ClusterAccessDenied,Microsoft.FailoverClusters.PowerShell.GetClusterCommand

Windows Server High availability Virtualization and Hyper-V

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question. To protect privacy, user profiles for migrated questions are anonymized.

0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2024-12-25T01:45:41+00:00

    Hi,

    You need to run the Get-Cluster cmdlet in an elevated PowerShell (run as administrator) which has the full privileges.

    0 comments No comments