I've created a small cluster of 2 win servers in a domain and another for the remote executions.

I am able to run Get-NlbClusterNode locally on each of the servers. I can establish remote session with the 2 nodes and have all the permissions in place. I can run Get-NlbClusterNode command remotely if only one of the servers is in the cluster, but when both are in the cluster I get:

 PS C:\Windows\system32> Invoke-Command -ComputerName -ScriptBlock { Get-NlbClusterNode } -credential $Creds
 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) +
 CategoryInfo : PermissionDenied:
 (Microsoft.Netwo...tNlbClusterNode:GetNlbClusterNode) [Get-NlbClusterN
 ode], UnauthorizedAccessException + FullyQualifiedErrorId : Access
 + PSComputerName :

Is this the so called powershell double hop issue? How could be this fixed?

Thank you


This is a common issue, probably due to the way the cluster has been installed (Some details here.) For the future, have a script ready to perform installation so as to have reproducible steps. In the immediate, find here some proposed solutions.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.