Get-ClusterResourceDependencyReport

Get-ClusterResourceDependencyReport

Generates a report that lists the dependencies between resources in a failover cluster.

Syntax

Parameter Set: InputObject
Get-ClusterResourceDependencyReport [-Cluster <String> ] [-Group <String> ] [-InputObject <PSObject> ] [-Resource <String> ] [ <CommonParameters>]

Detailed Description

The Get-ClusterResourceDependencyReport cmdlet generates a report that lists the dependencies between resources in a failover cluster.

The report has a filename extension of MHT. For convenience in storing and finding the report, you can pipe this cmdlet to the Copy-Item cmdlet and specify a destination folder into which to copy the report.

Parameters

-Cluster<String>

Specifies the name of the cluster on which to run this cmdlet. If the input for this parameter is . or it is omitted, then the cmdlet runs on the local cluster.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Group<String>

Specifies the name of the cluster group for which to generate the dependency report.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-InputObject<PSObject>

Specifies the cluster group or cluster resource for which to create the dependency report.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Resource<String>

Specifies the name of the cluster resource for which to generate the dependency report.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • Microsoft.FailoverClusters.PowerShell.ClusterGroup
  • Microsoft.FailoverClusters.PowerShell.ClusterResource

Outputs

The output type is the type of the objects that the cmdlet emits.

  • System.IO.FileInfo

Examples

EXAMPLE 1

This example creates a dependency report file for the clustered file server, or resource group, named cluster1FS12 on the local cluster.

PS C:\> Get-ClusterResourceDependencyReport -Group cluster1FS12

EXAMPLE 2

This example creates a dependency report file for the clustered file server, or resource group, named cluster1FS12 on the local cluster. The dependency report is copied to C:\users\user1.

PS C:\> Get-ClusterResourceDependencyReport -Group cluster1FS12 | Copy-Item -Destination C:\users\user1

EXAMPLE 3

This example creates a dependency report file for each clustered role, or resource group, on the local cluster, and copies all reports to \\fileserver\share.

PS C:\> Get-ClusterGroup | Get-ClusterResourceDependencyReport | Copy-Item -Destination \\fileserver\share

Add-ClusterResourceDependency

Remove-ClusterResourceDependency

Set-ClusterResourceDependency

Copy-Item