Grant-ClusterAccess

Grant-ClusterAccess

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

構文

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

詳細説明

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.

パラメーター

-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.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-Full

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

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-InputObject<PSObject>

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

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

true (ByValue)

ワイルドカード文字を許可する

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.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-User<StringCollection>

Specifies the user for whom to grant cluster access.

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

  • Microsoft.FailoverClusters.PowerShell.Cluster

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

  • None

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

関連トピック

Block-ClusterAccess

Get-ClusterAccess

Remove-ClusterAccess