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.
Sintaxis
Parameter Set: InputObject
Add-ClusterResourceType [-Name] <String> [-Dll] <String> [[-DisplayName] <String> ] [-Cluster <String> ] [-InputObject <PSObject> ] [ <CommonParameters>]
Descripción detallada
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: Este cmdlet no se puede ejecutar de forma remota sin la autenticación del proveedor de servicio de seguridad de credenciales (CredSSP) en el equipo servidor.
Parámetros
-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 |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-DisplayName<String>
Specifies the display name for the resource type.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
3 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-Dll<String>
Specifies the DLL file path for the resource type.
Alias |
ninguno |
¿Requerido? |
true |
¿Posición? |
2 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-InputObject<PSObject>
Specifies the cluster on which to register the new resource type.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
true (ByValue) |
¿Aceptar caracteres comodín? |
false |
-Name<String>
Specifies the name of the cluster resource type to register.
Alias |
ninguno |
¿Requerido? |
true |
¿Posición? |
1 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
<CommonParameters>
Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Entradas
El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.
- Microsoft.FailoverClusters.PowerShell.Cluster
Salidas
El tipo de resultado es el tipo de objetos que emite el cmdlet.
- Microsoft.FailoverClusters.PowerShell.ClusterResourceType
Ejemplos
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"