Busines Tutorial NewsEasily hide users from address book in Skype for Business/Lync via powershell

If you don't want users or other resources to appear in address book / GAL search in the Skype for Business client there is an easy way.
I made myself a tiny script for doing this:
This sets the attribute "msExchHideFromAddressLists" to True.
It also clears the attribute "ShowinAddressBook" 

This is the Script:

$users = Get-CsAdUser -Filter {name -Like "*test*"}


foreach ($object in $users)
    {
      Set-ADObject -Add @{msExchHideFromAddressLists=$true} -Identity $object.DistinguishedName
      Set-ADObject �clear ShowinAddressBook -Identity $object.DistinguishedName


  }

In this example i hide all the test users from showing up in address book search.

The top line can be changed to the selection of your choice.

Save the script as i.e. HideFromGal.ps1 and run it.

After running the script the objects will no longer show when you do an address book search in your Skype4B or Lync client.

Related Posts :

0 Response to "Busines Tutorial NewsEasily hide users from address book in Skype for Business/Lync via powershell"

Posting Komentar