Поделиться через


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 from which this cmdlet gets security groups. 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.

Examples

Example 1: Get security groups for a role

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

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

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

Add-DPMSecurityGroup

Remove-DPMSecurityGroup

Get-DPMRole