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.
Syntaxe
Parameter Set: InputObject
Add-ClusterResourceType [-Name] <String> [-Dll] <String> [[-DisplayName] <String> ] [-Cluster <String> ] [-InputObject <PSObject> ] [ <CommonParameters>]
Description détaillée
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.
Paramètres
-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.
Alias |
none |
Requis ? |
false |
Position ? |
named |
Valeur par défaut |
none |
Accepter l'entrée de pipeline ? |
false |
Accepter les caractères génériques ? |
false |
-DisplayName<String>
Specifies the display name for the resource type.
Alias |
none |
Requis ? |
false |
Position ? |
3 |
Valeur par défaut |
none |
Accepter l'entrée de pipeline ? |
false |
Accepter les caractères génériques ? |
false |
-Dll<String>
Specifies the DLL file path for the resource type.
Alias |
none |
Requis ? |
true |
Position ? |
2 |
Valeur par défaut |
none |
Accepter l'entrée de pipeline ? |
false |
Accepter les caractères génériques ? |
false |
-InputObject<PSObject>
Specifies the cluster on which to register the new resource type.
Alias |
none |
Requis ? |
false |
Position ? |
named |
Valeur par défaut |
none |
Accepter l'entrée de pipeline ? |
true (ByValue) |
Accepter les caractères génériques ? |
false |
-Name<String>
Specifies the name of the cluster resource type to register.
Alias |
none |
Requis ? |
true |
Position ? |
1 |
Valeur par défaut |
none |
Accepter l'entrée de pipeline ? |
false |
Accepter les caractères génériques ? |
false |
<CommonParameters>
Cette applet de commande prend en charge les paramètres courants : -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer et -OutVariable. Pour plus d'informations, consultez . about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Entrées
Le type d'entrée correspond au type des objets que vous pouvez adresser à l'applet de commande.
- Microsoft.FailoverClusters.PowerShell.Cluster
Sorties
Le type de sortie correspond au type des objets que l'applet de commande émet.
- Microsoft.FailoverClusters.PowerShell.ClusterResourceType
Exemples
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"