Remove-CsOnlineUMMailBoxPolicy

 

Topic Last Modified: 2016-08-30

Use the Remove-CsOnlineUMMailBoxPolicycmdlet to delete a Unified Messaging (UM) mailbox policy.

Remove-CsOnlineUMMailBoxPolicy -Identity <String> [-BypassDualWrite <$true | $false>] [-Confirm [<SwitchParameter>]] [-DomainController <String>] [-Force <SwitchParameter>] [-TenantId <Guid>] [-WhatIf [<SwitchParameter>]]

This example deletes the UM mailbox policy MyUMMailboxPolicy.

Remove-UMMailboxPolicy -Identity MyUMMailboxPolicy

The Remove-UMMailboxPolicy cmdlet deletes or removes a UM mailbox policy. If the UM mailbox policy is deleted from UNRESOLVED_TOKEN_VAL(exADNoMk), the UM mailbox policy can't be used when configuring UM-enabled users. The UM mailbox policy can't be deleted if the UM mailbox policy is referenced by any UM-enabled mailboxes.

After this task is completed, the UM mailbox policy is removed from UNRESOLVED_TOKEN_VAL(exADNoMk).

 

Parameter Required Type Description

Identity

Required

System.String

The Identity parameter specifies the identifier for the UM mailbox policy being deleted. This parameter is the directory object ID for the UM mailbox policy.

BypassDualWrite

Optional

System.Boolean

PARAMVALUE: $true | $false

Confirm

Optional

System.Management.Automation.SwitchParameter

The Confirm switch causes the command to pause processing, and requires confirmation to proceed.

DomainController

Optional

System.String

Specifies the domain controller that's used by the cmdlet to read or write the specified data. Valid inputs for this parameter are either the fully qualified domain name (FQDN) or the computer name.

Force

Optional

System.Management.Automation.SwitchParameter

Allows the command to complete without user input.

TenantId

Optional

System.Guid

Specifies the globally unique identifier (GUID) of your Skype for Business Online tenant account. For example: -Tenant "38aad667-af54-4397-aaa7-e94c79ec2308". You can find your tenant ID by running this command: Get-CsTenant | Select-Object DisplayName, TenantID

If you are using a remote session of Windows PowerShell and are connected only to Skype for Business Online, you do not have to include the Tenant parameter. The tenant ID will be determined by your connection and credentials. The Tenant parameter is primarily for use in a hybrid deployment.

WhatIf

Optional

System.Management.Automation.SwitchParameter

The WhatIf switch causes the command to simulate its results. By using this switch, you can view what changes would occur without having to commit those changes.

 
Show: