Carl Billington
asked on
Modify msExchHomeServerName AD attribute for all users in a specific Exchange Database
Is there a way of modifying 'msExchHomeServerName' Active Directory attribute for all users that are located in a specific Exchange 2010 Database?
Thanks for your help.
Thanks for your help.
What happened that you need to manually change this attribute?
ASKER
It's pointing at the wrong Exchange server and CommVault is failing to see these mailboxes. When I manually change this attribute CommVault works successfully.
This is why I need this command.
Thanks.
This is why I need this command.
Thanks.
How many users are we talking about?
$OU = "ou=1,dc=2,dc=3,dc=4"
$newhomevalue = "newservername"
$users = get-aduser -filter * -searchbase $OU
foreach ($User in $users)
{
set-aduser $user.samaccountname -Replace @{msExchHomeServerName=$ne whomevalue }
}
$newhomevalue = "newservername"
$users = get-aduser -filter * -searchbase $OU
foreach ($User in $users)
{
set-aduser $user.samaccountname -Replace @{msExchHomeServerName=$ne
}
ASKER
Thanks but I need a command to run for all users that are located in a specific Exchange 2010 Database. Not Active Directory
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
PERFECT ANSWER!
Thank you.
Thank you.