Solved

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

Posted on 2014-03-05
6
2,711 Views
Last Modified: 2014-03-30
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
Comment
Question by:TRTurner
  • 2
  • 2
6 Comments
 
LVL 11

Expert Comment

by:Giladn
ID: 39907250
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
 
LVL 14

Expert Comment

by:Justin Yeung
ID: 39907310
import-module activedirectory
$users = get-aduser -filter * -properties *
foreach ($user in $users)
{
$user | set-aduser -remove @{msExchHideFromAddressList = $true}
]
0
 
LVL 11

Expert Comment

by:Giladn
ID: 39907323
Justin Yeung - nice one, never used it, if it's working it's a better solution then using a 3rd party tool.
0
 
LVL 14

Accepted Solution

by:
Justin Yeung earned 500 total points
ID: 39907326
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
 
LVL 6

Author Closing Comment

by:TRTurner
ID: 39965539
Thanks
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Synchronize a new Active Directory domain with an existing Office 365 tenant
OfficeMate Freezes on login or does not load after login credentials are input.
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question