The Way to Decommission your Skype For Business Server s In Perpetuity

 

I wrote a blog the other night, about renaming your Skype for Business Pool. The joke of the article was you basically have to decommission the server!! The more I got to thinking about the changes in SFB, the more I got to realize the Skype Team is moving in the direction of the Exchange Team as far as decommissioning goes. Truly, if you expect to be able to use your server for a subsequent deployment, your going to have to get all the metadata cleaned up. In order to do this, you really need a good comprehensive removal process.

 

This is a shot at one anyway. Please comment if you come up with a situation where your not satisfied with my removal steps. I will adjust to make them as comprehensive as I can. Thank you in Advance.

Similar to Exchange Removal steps

Get-CSuser | Disable-CSuser

Get-CsConferenceDirectory | Remove-CsConferenceDirectory

Get-CsExUmContact -Filter {RegistrarPool -eq “lyncpool.your.domain”} | Remove-CsExUmContact

Get-CsRgsWorkflow -Identity:Service:ApplicationServer:lyncserver.your.FQDN| Remove-CsRgsWorkflow

Get-CsDialInConferencingAccessNumber | where {$_.Pool -eq “LyncServerPoolFqdn”} | Remove- CsDialInConferencingAccessNumber

Once you get to this point, you may Remove gateways from topology. But before you do,  that means disassociating them from routes etc. in SFB Control Panel. Go to Voice Routing. and the other tabs, and remove the gateway where ever it may appear. Then then delete it in topology builder.

Check your Progress

Get-CsVoiceRoute | select Identity,PstnGatewayList

Go into topology Builder and right click and choose remove deployment- Follow instructions

Uninstall Databases -There may be several of these commands, depending on what you have installed.

This is the format of the commands you will need to run-

Uninstall-CsDatabase -DatabaseType User -SqlServerFqdn sqlbe.contoso.com -SqlInstanceName name

Uninstall-CsDatabase -DatabaseType CentralMgmt -SqlServerFqdn sqlbe.contoso.com -SqlInstanceName name

See for database type below- you may have all these- so just keep runing them until you have the databases all removed!

  • Activemonitoring
  • Application
  • Archiving
  • Centralmgmt
  • Edge
  • Lyss
  • Monitoring
  • Persistantchat
  • Persistentchatcompliance
  • Provision
  • Registrar
  • SignInTelemetry

Now your databases are gone, so you can disconnect the CMS store from the Deployment.

  • Remove-CsConfigurationStoreLocation

Un Prep the domain –

Disable-CsAdDomain -Domain Contoso.com –GlobalSettingsDomainController DC.domain.Contoso.com -Force

Disable-CsAdForest -Force -GroupDomain Contoso.com

You may have to play with the syntax on the last few commands, to get the final steps correct. Don’t be shy. You have the structure, you just need to get the commands to be specific for you now. Good luck and I hope this was of some help.

I suppose the last step is to go into programs and features and remove all the lync applications. This should complete your removal. The final final step is to go into the ADSIedit and choose to login to the configuration partition. You should choose services and then highlight the RTC Service. Right click and Delete it and all its contents.

 

Louis

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s