Add-ClusterResourceType

Add-ClusterResourceType

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

構文

Parameter Set: InputObject
Add-ClusterResourceType [-Name] <String> [-Dll] <String> [[-DisplayName] <String> ] [-Cluster <String> ] [-InputObject <PSObject> ] [ <CommonParameters>]

詳細説明

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

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.

Note:このコマンドレットは、サーバー コンピューターに Credential Security Service Provider (CredSSP) 認証がない場合、リモートで実行できません。

パラメーター

-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.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-DisplayName<String>

Specifies the display name for the resource type.

エイリアス

なし

必須?

false

位置は?

3

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-Dll<String>

Specifies the DLL file path for the resource type.

エイリアス

なし

必須?

true

位置は?

2

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-InputObject<PSObject>

Specifies the cluster on which to register the new resource type.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

true (ByValue)

ワイルドカード文字を許可する

false

-Name<String>

Specifies the name of the cluster resource type to register.

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

  • Microsoft.FailoverClusters.PowerShell.Cluster

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

  • Microsoft.FailoverClusters.PowerShell.ClusterResourceType

EXAMPLE 1

This example creates ResType3 on the local cluster using res3.dll located on the provided resource DLL file path C:\.

PS C:\> Add-ClusterResourceType -Name ResType3 –InputObject C:\res3.dll

EXAMPLE 2

This example creates ResType4 on the local cluster using res4.dll located on the provided resource DLL file path C:\. The display name of the resource type is Resource Type 4.

PS C:\> Add-ClusterResourceType –Name ResType4 -InputObject C:\res4.dll -DisplayName "Resource Type 4"

関連トピック

Get-ClusterResourceType

Remove-ClusterResourceType