Orphan Distrubuted Cache Server – SharePoint 2013

SharePoint 2013 Distributed Cache is reporting a server as DOWN or UNKNOWN after the server was removed from sharepoint

The following command will confirm this issue

Use-cachecluster
get-cachehost

example output:

HostName : CachePort Service Name Service Status Version Info
-------------------------- ------------ -------------- ------------
WEB05.DOMAIN.LOCAL:22233 AppFabricCachingService UNKNOWN 0 [0,0][0,0]
WEB06.DOMAIN.LOCAL:22233 AppFabricCachingService UP 3 [3,3][1,3]
WEB07.DOMAIN.LOCAL:22233 AppFabricCachingService UP 3 [3,3][1,3]

To remove the orphan

run the following powershell command (using SharePoint 2013 powershell as administrators)

Unregister-CacheHost -HostName "" -provider "SPDistributedCacheClusterProvider" -ConnectionString "Data Source=;Initial Catalog=;Integrated Security=True;Enlist=False"

Unregister-CacheHost -HostName "WEB05.DOMAIN.LOCAL" -provider "SPDistributedCacheClusterProvider" -ConnectionString "Data Source=SHAREPOINTSQL;Initial Catalog=ConfigDB;Integrated Security=True;Enlist=False"

Connection string details can be found here: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\AppFabric\V1.0\Configuration

Leave a Reply

Your email address will not be published. Required fields are marked *