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: