PowerShell Hide Distribution Group in LYNC Client
Requirement
Hide Distribution Group in LYNC Client reason is to avoid people pinging multiple users. Not all the Distribution Groups but a few which needs to be hidden from search.
Summary
Exchange environment migrated to online and on-premises Exchange has been decommissioned. AD is on-premises as well. So, committing the change on Exchange Online is not possible.
Known Error
Solution
The mailbox can be hidden in Exchange Online using PowerShell command. However, hiding Distribution Group needs to be done on out premises AD. We can achieve this using PowerShell code:
Set-ADObject -Identity 'Test Group' -replace @{msExchHideFromAddressLists=$true} Set-ADObject -clear ShowinAddressBook |
Help
help Get-ADObject help Set-ADObject |