How to bulk change Users to Hide from Address List – msExchHideFromAddressLists

#Test ( Whatif ) 
Get-ADUser -Filter {UserPrincipalName -like "*@domain.com"} -property msExchHideFromAddressLists | Set-ADObject -Replace @{msExchHideFromAddressLists=$true} -Whatif
#Production Change
Get-ADUser -Filter {UserPrincipalName -like "*@domain.com"} -property msExchHideFromAddressLists | Set-ADObject -Replace @{msExchHideFromAddressLists=$true}

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...