Stop/Start Distributed Cache using powershell

To STOP Distributed Cache

$instanceName ="SPDistributedCacheService Name=AppFabricCachingService"
$serviceInstance = Get-SPServiceInstance | ? {($_.service.tostring()) -eq $instanceName -and ($_.server.name) -eq "<server name>"}
$serviceInstance.unprovision()


To START Distributed Cache

$instanceName ="SPDistributedCacheService Name=AppFabricCachingService"
$serviceInstance = Get-SPServiceInstance | ? {($_.service.tostring()) -eq $instanceName -and ($_.server.name) -eq "<server name>"}
$serviceInstance.provision()

Comments

Popular posts from this blog

SharePoint 2013 and InfoPath 2013 - Creating Web Enabled Forms

"There's a configuration problem preventing us from getting your document. If possible, try opening this document in Microsoft Word." Office WebApp Error

Search stops working and Central admin Search screens error