warning error on hyperv

nagarishi 1 Reputation point
2022-08-24T07:03:19.86+00:00

while runing this command:
$clusterResource = Get-ClusterResource -Cluster cluster-fc | Where ResourceType -eq "Virtual Machine”; foreach ($cluster in $clusterResource) {$vmName = $cluster.Name.split(" ")[2]; Write-Host $vmName; (Get-ClusterGroup $vmName).PreferredSite="mLocal"}
I am getting this error:
WARNING: If you are running Windows PowerShell remotely, note that some failover clustering cmdlets do not work remotely. When possible, run the cmdlet locally and specify a remote co
mputer as the target. To run the cmdlet remotely, try using the Credential Security Service Provider (CredSSP). All additional errors or warnings from this cmdlet might be caused by r
unning it remotely.
Get-ClusterGroup : The cluster service is not running. Make sure that the service is running on all nodes in the cluster.
There are no more endpoints available from the endpoint mapper
At line:1 char:1

  • Get-ClusterGroup vm_str1 | select *
  • ~~~~~~~~~~~~~~~~~~~~~~~~
  • CategoryInfo : ConnectionError: (:) [Get-ClusterGroup], ClusterCmdletException
  • FullyQualifiedErrorId : ClusterEndpointNotRegistered,Microsoft.FailoverClusters.PowerShell.GetClusterGroupCommand

PS C:\Users\Administrator.SYSTEST>

Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,538 questions
0 comments No comments
{count} votes