How to hide all users in a particular OU in the Global Address List.
we running dirsync , adfs in our o365 environment. want hide students in our gal. know can done 1 user object @ time in adsieditor, have method or pssscript hide user objects contained in particular ou? trying avoid tedious manual process.
mike
this how script it:
get-aduser -filter * -searchbase "ou=you,ou=ou..." |
set-aduser -replace @{msexchhidefromaddresslists=$true}
chris ream
Windows Server > Windows PowerShell
Comments
Post a Comment