Access Denied when running Test-CsExStorageConnectivity

When running The Lync Server 2013 cmdlet Test-CsExStorageConnectivity to test connectivity to Exchange 2013, you might see the error Access Denied as shown below

Test-CsExStorageConnectivity : ExCreateItem exchange operation failed, code=5,


activityId=[52a9af76-e3b5-460b-8136-1c02553767e9]}Access Denied

The reason could be that the user running the cmdlet is not member of the local group "RTC Local User Administrators". Membership of the domain group RTCUniversalUserAdmins will automatically give you membership of the needed local group.

Use whoami /groups in a command window to see your group membership.