The Hot Blog

In hot blog, we blog hotfix right!

How to unhide all hidden contacts from GAL by using powershell script

How to unhide all hidden contacts from GAL by using powershell script

  • Comments 1
  • Likes

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

http://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

http://technet.microsoft.com/en-us/library/bb124717.aspx

 

Set-MailContact

http://technet.microsoft.com/en-us/library/aa995950.aspx

 

Applies To

Office 365 Exchange Online post deployment

Comments
  • What does the content of the "HiddenContacts.csv" look like

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment