/ Insights / Decom Lync/Skype after moving to Teams Insights Decom Lync/Skype after moving to Teams June 26, 2020 ConcurrencyThis is my working list for decom for older Lync and Skype deployments on prem for organizations that are moving to Microsoft Teams. **more info to be added around trunk removal.Look for disabled accounts that are still registered to Lync 2013Get-CSuser | Disable-CSuserGet-CsConferenceDirectory | Remove-CsConferenceDirectoryCheck for Analog devicesGet-CsAnalogDevice | Select-Object DisplayName, LineUriCheck for Meeting RoomsGet-CsMeetingRoomCheck for old conference directoriesGet-CsConferenceDirectoryUM Contact Objects find and remove.Get-CsExUmContact -Filter {RegistrarPool -eq “<LyncServerPoolFqdn>”} | Remove-CsExUmContactUM Response Group Objects.Get-CsRgsWorkflow -Identity:Service:ApplicationServer:<LyncServerPoolFqdn> | Remove-CsRgsWorkflowReassign the PSTN Gateway. This is used to move PSTN gateways from old mediation server to new Skype mediation server. To remove use second commandSet-CsPstnGateway -Identity “PstnGateway:<Xds Identity of PSTN Gateway>” -MediationServer:”MediationServer: <Name of Mediation Server Identity>”Get-CsTrunkConfiguration -Filter site:* | Remove-CsTrunkConfigurationValidate front end pool is vacant.Get-CsVoiceRoute | select Identity,PstnGatewayListTopology Clean upLog on to the computer where Topology Builder is installed.Start Topology Builder: Click Start, click All Programs, click Microsoft Lync Server 2010, and then click Lync Server Topology Builder.In the Actions pane, click Remove Deployment.Read the information regarding Remove DeploymentClick Next, and then click Finish.Once the above is done you can open topology builder and publish the empty topology by choosing the option Download Topology from existing deployment.SQL DB uninstallUninstall-CsDatabase -DatabaseType User -SqlServerFqdn sqlbe.contoso.net[-SqlInstanceName <instance name>]Central Store removalRemove-csconfigureationstorelocation