How to unhide all hidden contacts from GAL by using powershell script
Title
How to unhide all hidden contacts from GAL by using powershell script
Summery
Contacts that are hidden from Global Address List (GAL) are not visible to Office 365 Exchange Online users. This article provides a method that unhides all hidden contacts from GAL by using powershell script.
1.Follow the article to access Exchange Online through Powershell:
Connect Windows PowerShell to the Service
https://help.outlook.com/en-us/140/cc952755.aspx
2. Export a list for contacts hidden from GAL by running the following cmdlet:
Get-Mailcontact -Filter {HiddenFromAddressListsEnabled -eq $true} | Select identity,alias,HiddenFromAddressListsEnabled | Export-Csv -Path C:\HiddenContacts.csv -NoTypeInformation
3. Unhide the contacts from C:\HiddenContacts.csv file by running the following cmdlet:
$users = import-csv C:\HiddenContacts.csv
Foreach($_ in $users) {Set-mailcontact $_.identity -HiddenFromAddressListsEnabled $false}
More Information
Get-MailContact
https://technet.microsoft.com/en-us/library/bb124717.aspx
Set-MailContact
https://technet.microsoft.com/en-us/library/aa995950.aspx
Applies To
Office 365 Exchange Online post deployment
Comments
- Anonymous
May 24, 2013
What does the content of the "HiddenContacts.csv" look like