Topic Last Modified: 2010-10-01

Removes an existing server application. Server applications are applications that are hosted by Microsoft Lync Server 2010.


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


Parameter Required Type Description



Xds Identity

Unique identifier for the server application to be removed. Server application Identities are composed of the service where the application is hosted plus the application name. For example, the server application named QoEAgent might have an Identity similar to this:



Switch Parameter

Suppresses the display of any non-fatal error message that might occur when running the command.



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

Server applications refer to the individual programs that run under Lync Server 2010. The Remove-CsServerApplication cmdlet provides a way for administrators to remove any application running as part of Lync Server. Note that deleting a server application is not the same thing as uninstalling that application. When you run Remove-CsServerApplication, the application no longer runs under Lync Server. However, the software itself is not uninstalled, and the application can be re-enabled by running the New-CsServerApplication cmdlet.

Who can run this cmdlet: By default, members of the following groups are authorized to run the Remove-CsServerApplication 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-CsServerApplication }

Input Types

Microsoft.Rtc.Management.WritableConfig.Settings.ServerApplication.Application object. Remove-CsServerApplication accepts pipelined instances of the server application object.

Return Types

Remove-CsServerApplication deletes existing instances of the Microsoft.Rtc.Management.WritableConfig.Settings.ServerApplication.Application object.


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

Copy Code
Remove-CsServerApplication -Identity ""

In Example 1, the server application that has the Identity service: is removed. Because Identities must be unique, this command will never delete more than a single application.

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

Copy Code
Get-CsServerApplication | Where-Object {$_.Critical -eq $False} | Remove-CsServerApplication

In Example 2, all the non-critical server applications are removed. To carry out this task, the command first calls Get-CsServerApplication in order to return a collection of all the server applications currently in use in the organization. This collection is then piped to Where-Object, which picks all the applications where the Critical property is equal to False. This filtered collection is then piped to Remove-CsServerApplication, which deletes each item in the collection.

-------------------------- Example 3 ------------------------

Copy Code
Get-CsServerApplication -Filter "*" | Remove-CsServerApplication

The preceding command deletes all the server applications that have been configured for use by the service To do this, Get-CsServerApplication is used along with the Filter parameter; the filter value "*" returns all the applications that have an Identity that begins with the characters "". In turn, that collection is piped to Remove-CsServerApplication, which deletes each application from the

See Also