Exchange 2013 Troubleshooting: Error File share witness path '\Contoso.com\DAG' exists, but permissions are not correctly set. Account 'DAG$' must have full access.
Issue
Error File share witness path '\Contoso.com\DAG' exists, but permissions are not correctly set. Account 'DAG$' must have full access.
Symptom
Unable to run set-databaseavailablity group command
Set-DatabaseAvailabilityGroup -Identity DAG -WitnessServer FSW.CONTOSO.COM -WitnessDirectory C:\DAG
A server-side database availability group administrative operation failed. Error File share witness path ‘\fsw.contoso.com\DAG’ exists, but permissions are not correctly set. Account 'DAG$' must have full access...
Cause
Insufficient permissions to access file shares on witness server
Resolution
Assign the CNO ‘DAG’ full control over the file share witness directory and share.
- Right-click the file share witness directory
- Choose Properties ->Security
- Click Edit and Add the CNO
- Assign Full Control Permission