$instanceName = “SPDistributedCacheService Name = AppFabricCachingService”

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

$serviceInstance.UnProvision()