powershell Test-Cluster cmdlet: Access is denied. HRESULT: 0x80070005

1

I joined two hyper-v servers to a domain and added shared storage to both of them. From what I read I should be able to run the test-cluster cmdlet at this point for it to check the configuration, but when I run it, it throws an access denied error. I'm running it as the default administrator account for the domain.

PS C:\Users\administrator.LAB> test-cluster -Node 'hyperv-02','hyperv-01'
test-cluster : Access is denied. (Exception from HRESULT: 0x80070005
(E_ACCESSDENIED))
At line:1 char:1
+ test-cluster -Node 'hyperv-02','hyperv-01'
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : PermissionDenied: (:) [Test-Cluster], ClusterCmd
   letException
    + FullyQualifiedErrorId : UnauthorizedAccess,Microsoft.FailoverClusters.Po
   werShell.TestClusterCommand

These are both 2012 R2 server core installations.

powershell
windows-server-2012
failovercluster
windows-cluster
asked on Server Fault Nov 1, 2013 by red888 • edited Nov 1, 2013 by red888

1 Answer

0

oops this was my own stupidity. I had the server name wrong. The "hyperv-02" server was actually named "hypver-02". After renaming the computer the command worked. I still think the error message could have been a bit clearer though.

answered on Server Fault Nov 1, 2013 by red888

User contributions licensed under CC BY-SA 3.0