Remove-DPMRole

Deletes a DPM role.

Syntax

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

Description

The Remove-DPMRole cmdlet deletes a System Center - 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

-Confirm

Prompts you for confirmation before running the cmdlet.

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

-DpmRole

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

Type:DpmRole
Position:1
Default value:None
Required:True
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
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False