Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Change Alias in Exchange 2007 to match Username

Posted on 2011-09-07
2
Medium Priority
?
452 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 2000 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

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

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

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
This article will help to fix the below error for MS Exchange server 2010 I. Out Of office not working II. Certificate error "name on the security certificate is invalid or does not match the name of the site" III. Make Internal URLs and External…
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …
how to add IIS SMTP to handle application/Scanner relays into office 365.

661 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