How to check particular user has what rights on Hyper-V Failover cluster using WMI APIs

Krupal Joshi 1 Reputation point
2020-08-05T08:11:05.777+00:00

How to check particular user has what rights on Hyper-V Failover cluster using WMI APIs.

e.g.: I wanted to check, does "user1" has rights (with provided credentials) to list out VM(s), perform checkpoint/snapshot on VM(s) in Hyper-V Failover cluster.

Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,730 questions
Windows Server Clustering
Windows Server Clustering
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Clustering: The grouping of multiple servers in a way that allows them to appear to be a single unit to client computers on a network. Clustering is a means of increasing network capacity, providing live backup in case one of the servers fails, and improving data security.
1,005 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ian Xue 37,541 Reputation points Microsoft Vendor
    2020-08-06T06:04:37.023+00:00

    Hi,
    You could use the powershell cmdlet Get-ClusterAccess.
    It gets information about permissions that control access to a failover cluster.
    For more details you could refer to this link
    https://learn.microsoft.com/en-us/powershell/module/failoverclusters/Get-ClusterAccess?view=win10-ps

    Best Regards,
    Ian

    ----------

    Please remember to "Accept Answer" and upvote if the reply is helpful.

    0 comments No comments

Your answer

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