When a user leaves the company, often the Exchange mail account is deleted and the user account gets disabled .
In this way, the former employee can not access corporate data, but he still appears in the Global Address List (GAL) for internal staff. He can still be selected in the address book and is also still visible in the team calendar.
The reason for this lies in the fact that the account is still in the Active Directory and in the attribute msExchHideFromAddressLists, which contains no value. If this attribute is set to TRUE, the user disappears from the Global Address List and from certain calendar groups.
To ease the work with disabled users, you can use the following PowerShell CMDlets. (more…)