Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Error: Get-ClusterResource – Error opening resource

$
0
0

I am getting the following error on a server when trying to get a cluster resource using wildcards for the –Name switch. I do not get this error on my local machine. If I specify the complete name for 1 of the cluster resources I also do not get this error.

I replaced my cluster name with "ClusterName" below.

Command:

$cluster="ClusterName"

$resources=Get-ClusterResource-Cluster$cluster-NameHL7_UTMC.*

 

Error:

Get-ClusterResource : An error occurred opening resource'HL7_UTMC.*'.

At line:2 char:14

+ $resources = Get-ClusterResource -Cluster $cluster -Name HL7_UTMC.*

+              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [Get-ClusterResource], ClusterCmdletException

    + FullyQualifiedErrorId : Get-ClusterResource,Microsoft.FailoverClusters.PowerShell.GetResourceCommand

 

The server is: Windows 2008 R2 SP1 with PowerShell version 3 (I had to add the FailoverClusters module in order to use Get-ClusterResource since it was not previously installed)

My local machine is: Windows 8 with PowerShell version 3

I am getting the version on each machine by using: $PSVersionTable.PSVersion 

 

I am not sure if I am missing another module in order for wildcards to work or if it is a permissions issue or something else. Any help would be greatly appreciated.


Viewing all articles
Browse latest Browse all 6937

Trending Articles