Hide External Contact from Office 365 GAL

Open Windows PowerShell

Enable Scrpits to run in PowerShell

Set-ExecutionPolicy RemoteSigned

Run the following commands in order:
a.     $LiveCred = Get-Credential

Enter an Office 365 administrator address and password on open window.

b.     $Session = New-PSSession -ConfigurationName Microsoft.Exchange –ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection

c.     Import-PSSession $Session

Hide external contact from Global Address List

Set-MailContact -Identity robiul@mydomain.com -HiddenFromAddressListsEnabled $true


About Robiul

Robiul has 15 years of continuous successful career experience in ICT with extensive background in System Engineering, IT infrastructure design, operations and service delivery, managing IT projects / MIS functions for local and multi-national companies with in-depth knowledge of multiple operating systems as well as construct / manage small to medium size Data Center. Proven ability to design and implement medium to semi-large scale LAN/WAN/WLAN and system infrastructures. Academic qualification: Master of Science in Information Systems. Professional certifications are: MCSE, CCNA, ITIL and FoundStone Security Professional, VCP, NetAPP, CISSP etc.
This entry was posted in Powershell and tagged . Bookmark the permalink.