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

"We’re sorry. We ran into a problem completing your request. Please try that again in few minutes." Excel Service SharePoint

Deployment error "The web.config is invalid on this IIS Web Site"

SharePoint 2013 and InfoPath 2013 - Creating Web Enabled Forms