I got the below error

Distributed cache service is not enabled in this deployment.

I did Add-SPDistributedCacheServiceInstance the old error run a way and the below one come :(


Distributed cache service is unexpected configured on server(s The distributed cache service instance should not be configured for the failing servers. Remove the distributed cache service instances from the failing servers.

  • 1
    How many servers u have in the farm? on which server it is enabled? what is the status of the DC, is it up or down?
    – Waqas Sarwar MVP
    Apr 27 '17 at 19:14
  • 2 application server , the first server , stopped , down :(
    – Aashirya
    Apr 27 '17 at 19:15

So, basically DC is not provisioned properly.I would do following steps.

  • Login on the server with Farm administrator account.
  • Run this

    $instanceName =”SPDistributedCacheService Name=AppFabricCachingService” $serviceInstance = Get-SPServiceInstance | ? {($.service.tostring()) -eq $instanceName -and ($.server.name) -eq $env:computername}

    $serviceInstance.Unprovision() $serviceInstance.Delete()

  • Run Remove-SPDistributedCacheServiceInstance, Once it completed sucessfully

  • Verfiry the AppFabric Service is stopped...Check from Service console on the server, Also check from the Central admin ? system setting > manage Service on server. Make sure both says Stopped in front of DC.
  • Now Run the Add-SPDistributedCacheServiceInstance

  • Wait for couple of minutes and Now check the Status of the DC. Run these commands. Use-CacheCluster followed by Get-CacheHost.

this is good article for the reference: https://blogs.msdn.microsoft.com/sambetts/2014/03/19/sharepoint-2013-distributed-cache-appfabric-troubleshooting/


try this

$instanceName =”SPDistributedCacheService Name=AppFabricCachingService” 
$serviceInstance = Get-SPServiceInstance | ? {($_.service.tostring()) -eq $instanceName -and ($_.server.name) -eq $env:computername}

If($seriveInstance -ne $null)
  • Unprovision() not worked null PS :environment is 2016
    – Aashirya
    Apr 27 '17 at 19:30
  • try the new script, i just mentioned above... after that run this...Get-SPServiceInstance | ? {($_.service.tostring()) -eq “SPDistributedCacheService Name=AppFabricCachingService”} | select Server, Status
    – Waqas Sarwar MVP
    Apr 27 '17 at 19:43
  • please help me :( :(
    – Aashirya
    Apr 27 '17 at 20:10
  • Ca or Distributed cache?
    – Waqas Sarwar MVP
    Apr 27 '17 at 20:11
  • This command is only for D.C. Not related to ca. Try to run Add-SPDistributedCacheServiceInstance
    – Waqas Sarwar MVP
    Apr 27 '17 at 20:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.