Remove-DPMRole

Deletes a DPM role.

Syntax

Remove-DPMRole [-DpmRole] <DpmRole> [-Confirm] [-WhatIf] [<CommonParameters>]

Description

The Remove-DPMRole cmdlet deletes a System Center 2016 - Data Protection Manager (DPM) role. DPM roles let Microsoft SQL Server database owners to recover databases without assistance from a DPM administrator.

Examples

Example 1: Remove a role

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

The first command gets the role by using the Get-DPMRole cmdlet, and then stores it in the $DpmRole variable. The command makes the role editable.

The second command removes the role stored in $DpmRole.

Parameters

-DpmRole

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

Type:DpmRole
Required:True
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False