Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3663
  • Last Modified:

Change the the AD attribute value of msExchHideFromAddressList to <not set> for everyone in my AD.

Change the the AD attribute value of msExchHideFromAddressList to <not set> for everyone in my AD.

I have some users that are set to TRUE but most are set to <not set>

Anyone know a good PowerShell script that will change everyone in the AD at once?
0
TRTurner
Asked:
TRTurner
  • 2
  • 2
1 Solution
 
GiladnCommented:
http://admodify.codeplex.com/
an amazing tool. I believe it is working with 2008 too, very easy to use - you have all attributes there, use with caution!
0
 
Justin YeungSenior Systems EngineerCommented:
import-module activedirectory
$users = get-aduser -filter * -properties *
foreach ($user in $users)
{
$user | set-aduser -remove @{msExchHideFromAddressList = $true}
]
0
 
GiladnCommented:
Justin Yeung - nice one, never used it, if it's working it's a better solution then using a 3rd party tool.
0
 
Justin YeungSenior Systems EngineerCommented:
import-module activedirectory
$users = get-aduser -filter * -properties *
foreach ($user in $users)
{
if ($user.msExchHideFromAddressList -eq $true)
{
set-aduser $user -clear msExchHideFromAddressList
}
}

some typo on it............ yea you don't need any other 3rd party tools in AD at all.
0
 
TRTurnerAuthor Commented:
Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now