Get-DPMSecurityGroup

Get-DPMSecurityGroup

Gets the security groups for a DPM role.

Syntax

Parameter Set: Default
Get-DPMSecurityGroup [-DpmRole] <DpmRole> [ <CommonParameters>]

Detailed Description

The Get-DPMSecurityGroup cmdlet gets the security groups for a System Center 2012 – Data Protection Manager (DPM) role.

Parameters

-DpmRole<DpmRole>

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

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Notes

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

Examples

Example 1: Get security groups for a role

This example gets the DPM security groups for a role.

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

The second command gets the security groups for the role stored in the $DpmRole variable.

PS C:\> $DpmRole = Get-DpmRole -Name "OpsMgrSQL"
PS C:\> Get-DPMSecurityGroup -DPMRole $DPMRole

Add-DPMSecurityGroup

Remove-DPMSecurityGroup

Get-DPMRole