Add-DPMSecurityGroup

Add-DPMSecurityGroup

Adds security groups to a DPM role.

構文

Parameter Set: Default
Add-DPMSecurityGroup [-DpmRole] <DpmRole> [-SecurityGroups] <String[]> [-Confirm] [-WhatIf] [ <CommonParameters>]

詳細説明

The Add-DPMSecurityGroup cmdlet adds one or more security groups to a System Center 2012 – Data Protection Manager (DPM) role. You can use the Get-DPMRole to specify a DPM role. Use the Set-DPMRole cmdlet to save your changes.

You can see the security groups for a DPM role by using the Get-DPMSecurityGroup cmdlet. You can use the Remove-DPMSecurityGroup cmdlet to remove security groups from a DPM role.

パラメーター

-DpmRole<DpmRole>

Specifies a DPM role object. To obtain a DPM role object, use the Get-DPMRole cmdlet.

エイリアス

none

必須?

true

位置は?

1

既定値

none

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

false

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

false

-SecurityGroups<String[]>

Specifies an array of security groups. The cmdlet adds these groups to the DPM role.

エイリアス

none

必須?

true

位置は?

2

既定値

none

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

false

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

false

-Confirm

コマンドレットを実行する前に、ユーザーに確認を求めます。

必須?

false

位置は?

named

既定値

false

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

false

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

false

-WhatIf

コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。

必須?

false

位置は?

named

既定値

false

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

false

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

false

<CommonParameters>

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

入力

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

出力

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

  • For more information, type "Get-Help Add-DPMSecurityGroup -detailed".

Example 1: Add a security group to a role

This example adds a security group to a DPM role.

The first command uses the Get-DPMRole cmdlet to get the role named OpsMgrSQL and stores it in the $DpmRole variable. The command makes the role editable.

The second command adds the specified security group to the role stored in the $DpmRole variable.

PS C:\> $DpmRole = Get-DPMRole -Name "OpsMgrSQL" –-Editable
PS C:\> Add-DPMSecurityGroup -DpmRole $DpmRole -SecurityGroups "Hq\OpsMgrSQL"

関連トピック

Get-DPMSecurityGroup

Remove-DPMSecurityGroup

Get-DPMRole

Set-DPMRole