Solved

Change Alias in Exchange 2007 to match Username

Posted on 2011-09-07
2
427 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
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

Read this checklist to learn more about the 15 things you should never include in an email signature.
A list of top three free exchange EDB viewers that helps the user to extract a mailbox from an unmounted .edb file and get a clear preview of all emails & other items with just a single click on mailboxes.
In this video we show how to create an Address List 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 Organization >> Ad…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

821 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