Solved

Change Alias in Exchange 2007 to match Username

Posted on 2011-09-07
2
438 Views
Last Modified: 2012-05-12
I need a script or something to change the alias in Exchange 2007 to match the username of serveral different users on serveral different exchange server. Some of the users are already setup this way and others are not.
0
Comment
Question by:vhaperbaugub
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 49

Accepted Solution

by:
Akhater earned 500 total points
ID: 36498897


$mbxs = get-mailbox -resultsize unlimited (for all exchange users)
$mbxs = get-mailbox -OrganizationalUnit domain.local/users  (for all users in a specific OU)
$mbxs = get-mailbox -Server servername (for all users in a specific server)

then



$mbxs | % { set-mailbox $_.DistinguishedName -Alias $_.SamAccountName}
0
 

Author Comment

by:vhaperbaugub
ID: 36502637
The script did the trick....Thanks
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Windows 10 came with  a lot of built in applications, Some organisations leave them there, some will control them using GPO's. This Article is useful for those who do not want to have any applications in their image (example:me).
Previously, on our Nano Server Deployment series, we've created a new nano server image and deployed it on a physical server in part 2. Now we will go through configuration.
In this video we show how to create an email address policy in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Mail Flow…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

739 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