Topic Last Modified: 2010-10-01

Removes an existing Microsoft Lync Server 2010 announcement. Announcements are played when users dial a valid but unassigned phone number. An announcement can be a message (such as "This number is temporarily out of service") or a busy signal.


Remove-CsAnnouncement -Identity <XdsIdentity> [-Confirm [<SwitchParameter>]] [-Force <SwitchParameter>] [-WhatIf [<SwitchParameter>]]


Parameter Required Type Description




A unique identifier for the Announcement you want to remove. The value for the Identity parameter can be supplied in one of two ways:

- Enter the Identity of the Application service for the announcements you want to remove. This will remove all announcements configured with the given service Identity. For example,

- Enter the full Identity of the single announcement you want to remove. This value will always be in the format <serviceID>/<GUID>, where serviceID is the Identity of the Application Server running the Announcement Service and GUID is a globally unique identifier associated with this announcement. For example:




Suppresses any confirmation prompts that would otherwise be displayed before making changes.



Switch Parameter

Describes what would happen if you executed the command without actually executing the command.



Switch Parameter

Prompts you for confirmation before executing the command.

Detailed Description

An organization can own phone numbers that are not assigned to users or phones, but that are still valid numbers that can be called. By default when someone dials one of those numbers, that person will receive a busy signal and the call may result in an error returned to the SIP client. By applying announcement settings to unassigned numbers, administrators have the option of playing a message, returning a busy signal, or redirecting the call. This cmdlet removes one or more of these announcement settings.

If you attempt to remove an announcement that is associated with an unassigned number range, by default you’ll receive a prompt asking if you really want to remove the announcement. If you delete the announcement, the AnnouncementName property of that range will be displayed as Null and no announcement will be played when those numbers are reached, only a busy signal will be heard. However, the AnnouncementId property value (the GUID of the Announcement that was removed) will remain visible.

Who can run this cmdlet: By default, members of the following groups are authorized to run the Remove-CsAnnouncement cmdlet locally: RTCUniversalServerAdmins. To return a list of all the role-based access control (RBAC) roles this cmdlet has been assigned to (including any custom RBAC roles you have created yourself), run the following command from the Windows PowerShell prompt:

Get-CsAdminRole | Where-Object {$_.Cmdlets –match "Remove-CsAnnouncement"}

Input Types


Return Types

Deletes existing instances of the Microsoft.Rtc.Management.WritableConfig.Settings.AnnouncementServiceSettings.Announcement object.


-------------------------- Example 1 ------------------------

Copy Code
Remove-CsAnnouncement -Identity ""

The preceding command removes the announcement that has the Identity "". Because Identities must be unique, this command will remove, at most, a single announcement.

-------------------------- Example 2 ------------------------

Copy Code
Remove-CsAnnouncement -Identity ""

In Example 2, all the announcements that have been applied to the service are deleted. To do this, Remove-CsAnnouncement is called along with the Identity parameter. Specifying the parameter value "" (without the appended GUID that identifies a unique announcement) removes all the announcements configured for the specified service.

See Also