Hide users from Global Address List with adsync enabled

https://gertkjerslev.com/howto-sync-msexchhidefromaddresslists-attribute-office-365

https://blog.cloudadmin.me/2018/05/27/hide-user-global-address-list-using-aadsync-azure-active-directory-connect/

Set-ADUser paulie -Replace @{msExchHideFromAddressLists=$false}

$Cred = Get-Credential

$s = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $cred -Authentication Basic -AllowRedirection
Import-PSSession $s

get-Mailbox -Identity test@domain.com | fl HiddenFromAddressListsEnabled

Leave a Reply