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

Popular posts from this blog

difference between wuauclt1.exe and wuauclt.exe

Error: 0x80073701 when trying to add Print Services Role in Windows 2012 Standard

Windows 2016 RDS event 1306 Connection Broker Client failed to redirect the user... Error: NULL