The user that is going to remove the distributed cache needs a lot of privileges on the server and the database, so I performed these actions under my SharePoint install account. The account needs the following rights:
- dbowner and securityadmin on the database
- member of local administrators on the server
- farm administrator
Start the SharePoint 2013 Management Shell (run as administrator if you haven't turned off UAC) and run the cmdlet:
Finally, return to Central Administration, go back and choose to reanalyze the Health Analyzer rule again and this will remove the alert.