Get-DPMSecurityGroup
Gets the security groups for a DPM role.
Syntax
Default (Default)
Get-DPMSecurityGroup
[-DpmRole] <DpmRole>
[<CommonParameters>]
Description
The Get-DPMSecurityGroup cmdlet gets the security groups for a System Center - Data Protection Manager (DPM) role.
Examples
Example 1: Get security groups for a role
PS C:\>$DpmRole = Get-DpmRole -Name "OpsMgrSQL"
PS C:\> Get-DPMSecurityGroup -DPMRole $DpmRole
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.
Parameters
-DpmRole
Specifies a DPM role from which this cmdlet gets security groups. To obtain a DPM role object, use the Get-DPMRole cmdlet.
Parameter properties
Type: | DpmRole |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 1 |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.