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.

Lync 2010: Adding Custom Presence descriptions

Create a new XML file on the local workstation and customize the presence descriptions:

<?xml version="1.0"?>
<customStates
xmlns="http://schemas.microsoft.com/09/2005/communicator/customStates"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://schemas.microsoft.com/09/2005/communicator/customStates
">
<customState ID="1" availability="online">
 <activity LCID="1033">Online now</activity>
</customState>
<customState ID="2" availability="busy">
 <activity LCID="1033">Send coffee</activity>
</customState>
<customState ID="3" availability="busy">
 <activity LCID="1033">Call my cell.</activity>
</customState>
 <customState ID="4" availability="do-not-disturb">
<activity LCID="1033">Sleep</activity>
</customState>
</customStates>

Save to somewhere (where there should be installed in the Lync).

Change registry:

Path: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Communicator 
Name: EnableSIPHighSecurityMode 
Value: 0

and

Path: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Communicator 
Name: CustomStateURL 
Value: file:///C:/Program Files\Microsoft Lync/presence.xml

Restart Lync.

Ps: Locale ID / LCID code list if you use a language other than English Lync:

Bulgarian …1026
Croatian …1050
Czech …1029
Danish …1030
Dutch …1043
Dutch – Belgium …2067
Finnish …1035
French – Standard …1036
German – Standard …1031
Greek …1032
Hungarian …1038
Icelandic …1039
Italian – Standard …1040
Latvian …1062
Lithuanian …1063
Macedonian …1071
Maltese …1082
Norwegian – Bokmål …1044
Polish …1045
Portuguese – Standard …2070
Romanian …1048
Romanian – Moldova …2072
Russian …1049
Serbian – Cyrillic …3098
Slovenian …1060
Slovak …1051
Spanish – Standard …1034
Swedish …1053
Turkish …1055
Ukranian …1058

Lync 2010: debug SIP issues

Use Lync Server 2010 Logging Tool.
You can run the Lync Server 2010 Logging Tool on the other computer by installing the Lync Server administrative tools on that computer. OCSLogger.exe is the file that runs Logging Tool, which by default is installed to %ProgramFiles%\Common Files\Microsoft Lync Server 2010\Tracing.

In order to best diagnose issues with SIP you must select the above Logging Options Components:

  • S4 -> Level: All and Flags: All_Flags
  • SIPStack -> Level: All and Flags: All_Flags

Start and Analyze log files.

Lync 2010: misconfig error, EWS and MAPI config not found (but Lync client connected)

The Autodiscover service in Exchange system is not set correctly.
Set correctly, according to the system.

If you do not necessarily need the service (elsewhere), a DNS entry is sufficient:
A SRV record to EWS Exchange szerver (port 443):

_autodiscover._tcp.yourdomain (eg.:_autodiscover._tcp.contoso.com)