Grant-ClusterAccess

Grants access to a failover cluster, either full access or read-only access.

Syntax

Grant-ClusterAccess
     [-User] <StringCollection>
     [-Full]
     [-ReadOnly]
     [-InputObject <PSObject>]
     [-Cluster <String>]
     [<CommonParameters>]

Description

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.

Examples

Example 1

PS C:\> Grant-ClusterAccess -User contoso\johnj99 -Full

This example grants full access to the local cluster to johnj99 in the contoso domain.

Example 2

PS C:\> Grant-ClusterAccess -User contoso\johnj99 -ReadOnly

This example grants read-only access to the local cluster to johnj99 in the contoso domain.

Required Parameters

-User

Specifies the user for whom to grant cluster access.

Type:StringCollection
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-Cluster

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.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Full

Specifies that the user gets full cluster access. If no access level is specified, then the user gets read-only cluster access.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InputObject

Specifies the cluster on which to grant access for the given user.

Type:PSObject
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters: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.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.FailoverClusters.PowerShell.Cluster

Outputs

None