Lync Server Installation Error: Prerequisite installation failed: Wmf2008R2

This WMF package has changed for Windows Server 2008 R2 SP1.
Run from an elevated command window:

%systemroot%\system32\dism.exe /online /add-package /packagepath:%windir%\servicing\Packages\Microsoft-Windows-Media-Format-Package~31bf3856ad364e35~amd64~~6.1.7601.17514.mum /ignorecheck

(…or the correct version!)

Reboot.

Rerun Components install.

Remove Lync 2010 system from AD (with orphaned servers)

1., Remove the following Groups from Active Directory :

CSAdministrator
CSArchivingAdministrator
CSHelpDesk
CSLocationAdministrator
CSResponseGroupAdministrator
CSServerAdministrator
CSUserAdministrator
CSViewOnlyAdministrator
CSVoiceAdministrator
RTCComponentUniversalServices
RTCHSUniversalServices
RTCProxyUniversalServices
RTCSBAUniversalServices
RTCUniversalConfigReplicator
RTCUniversalGlobalReadOnlyGroup
RTCUniversalGlobalWriteGroup
RTCUniversalReadOnlyAdmins
RTCUniversalSBATechnicians
RTCUniversalServerAdmins
RTCUniversalServerReadOnlyGroup
RTCUniversalUserAdmins
RTCUniversalUserReadOnlyGroup

2., Run ADSIEDIT and connect to the Configuration naming context.  Browse down to Configuration -> Services -> RTC Service and then delete the entire RTC Service container.

3., Also delete the Computer object(s) for any Lync Server you had previously installed.

How to View / Disconnect Remote Desktop Sessions from remote Commandline

I used to receive the maximum number of connections error message when I try to log on to the Windows Server in Windows Remote Desktop.

Open the command prompt on the client computer as a domain Admin user.

You will get a list of the Remote Sessions in the command window:

qwinsta /server:SERVERIP

Command line to disconnect the remote session:

rwinsta SESSIONID /server:SERVERIP