Grant-ClusterAccess
Grant-ClusterAccess
Grants access to a failover cluster, either full access or read-only access.
Sintaxis
Parameter Set: InputObject
Grant-ClusterAccess [-User] <StringCollection> [-Cluster <String> ] [-Full] [-InputObject <PSObject> ] [-ReadOnly] [ <CommonParameters>]
Descripción detallada
The Grant-ClusterAccess cmdlet grants access to a failover cluster, either full access or read-only access. To provide someone with read-only access to the cluster, use the ReadOnly parameter.
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 |
-Full
Specifies that the user gets full cluster access. If no access level is specified, then the user gets read-only cluster access.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-InputObject<PSObject>
Specifies the cluster on which to grant access for the given user.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
true (ByValue) |
¿Aceptar caracteres comodín? |
false |
-ReadOnly
Specifies that the user gets read-only cluster access. If no access level is specified, then the user gets read-only cluster access.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-User<StringCollection>
Specifies the user for whom to grant cluster access.
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.
- None
Ejemplos
Example 1
This example grants full access to the local cluster to johnj99 in the contoso domain.
PS C:\> Grant-ClusterAccess –User contoso\johnj99 -Full
Example 2
This example grants read-only access to the local cluster to johnj99 in the contoso domain.
PS C:\> Grant-ClusterAccess –User contoso\johnj99 -ReadOnly