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. Granting full access to the cluster is equivalent to granting full access to each of the cluster nodes.

Examples

Example 1

Grant-ClusterAccess -User contoso\johnj99 -Full

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

Example 2

Grant-ClusterAccess -User contoso\johnj99 -ReadOnly

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

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
Required:False
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
Required:False
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
Required:False
Accept pipeline input:True
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
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-User

Specifies the user for whom to grant cluster access.

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

Inputs

Microsoft.FailoverClusters.PowerShell.Cluster

Outputs

None