Export (0) Print
Expand All
Expand Minimize

Add-ClusterResourceType

Add-ClusterResourceType

Add a resource type to a failover cluster, and specify information such as the dynamic-link library (DLL) to use with that resource type.

Syntax

Add-ClusterResourceType [-InputObject <psobject>] [-Name] <string> [-Dll] <string> [[-DisplayName] <string>] [-Cluster <string>] [<CommonParameters>]
  • InputObject

  • Name

  • Dll

  • DisplayName

  • Cluster

Detailed Description

The failover cluster software provides Resource DLL files for the most common types of resources. Using the application programming interface (API) provided in the Microsoft Platform Software Development Kit (SDK), other vendors can add support for other resource types.

Parameters

Cluster

Specifies the name of the cluster to run this cmdlet on. If you type "-Cluster ." or omit the parameter, the cmdlet runs on the local cluster.

Default Value:

Data Type: string

Attributes

Name Value PSMAML Attribute

Required?

false

required

Variable Length?

false

variableLength

Accept wildcard characters?

false

globbing

Accept Pipeline Input?

false

pipelineInput

Position?

named

position

Value Attributes

Name Value PSMAML Attribute

Required?

true

required

Variable Length?

false

variableLength

DisplayName

Specifies the display name for the resource type.

Default Value:

Data Type: string

Attributes

Name Value PSMAML Attribute

Required?

false

required

Variable Length?

false

variableLength

Accept wildcard characters?

false

globbing

Accept Pipeline Input?

false

pipelineInput

Position?

3

position

Value Attributes

Name Value PSMAML Attribute

Required?

true

required

Variable Length?

false

variableLength

Dll

Specifies the dll path for the resource type.

Default Value:

Data Type: string

Attributes

Name Value PSMAML Attribute

Required?

true

required

Variable Length?

false

variableLength

Accept wildcard characters?

false

globbing

Accept Pipeline Input?

false

pipelineInput

Position?

2

position

Value Attributes

Name Value PSMAML Attribute

Required?

true

required

Variable Length?

false

variableLength

InputObject

Specifies the cluster to register the new resource type on.

Default Value:

Data Type: psobject

Attributes

Name Value PSMAML Attribute

Required?

false

required

Variable Length?

false

variableLength

Accept wildcard characters?

false

globbing

Accept Pipeline Input?

true (ByValue)

pipelineInput

Position?

named

position

Value Attributes

Name Value PSMAML Attribute

Required?

true

required

Variable Length?

false

variableLength

Name

Specifies the name of the cluster resource type to register.

Default Value:

Data Type: string

Attributes

Name Value PSMAML Attribute

Required?

true

required

Variable Length?

false

variableLength

Accept wildcard characters?

false

globbing

Accept Pipeline Input?

false

pipelineInput

Position?

1

position

Value Attributes

Name Value PSMAML Attribute

Required?

true

required

Variable Length?

false

variableLength

Input Type

Microsoft.FailoverClusters.PowerShell.Cluster

Return Type

Microsoft.FailoverClusters.PowerShell.ClusterResourceType

Examples

-------------------------- EXAMPLE 1 --------------------------

Command Prompt: C:\PS>
 
Add-ClusterResourceType ResType3 %systemdrive%\res3.dll 
 
Name                                    DisplayName 
----                                    ----------- 
ResType3                                ResType3

Description

-----------

This command creates ResType3 on the local cluster using res3.dll located on %systemdrive%.

 

-------------------------- EXAMPLE 2 --------------------------

Command Prompt: C:\PS>
 
Add-ClusterResourceType ResType4 %systemdrive%\res4.dll -DisplayName "Resource Type 4" 
 
Name                                    DisplayName 
----                                    ----------- 
ResType4                                Resource Type 4

Description

-----------

This command creates ResType4 on the local cluster using res4.dll located on %systemdrive%. The display name of the resource type is "Resource Type 4."

See Also

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft