I does the following:
– Ask for the username
– Gives full access to user mailbox and disable automapping
– Export Name,LegacyExchangeDN from the user to list.txt
– Run CalCheck
– Remove Full Access Permissions
Put CalCheck.ps1 in de same folder where calcheck.exe exsist.
You can find the script the Microsoft Script Libary: