Solved

how do i change email alias on all exchange 2000 users to their email adress or user logon name?

Posted on 2008-10-13
7
775 Views
Last Modified: 2012-05-05
how do i change email alias on all exchange 2000 users to their email adress or user logon name?
0
Comment
Question by:stiana
[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
  • 3
  • 3
7 Comments
 
LVL 6

Expert Comment

by:spyordie007
ID: 22707015
Do you want to change their SMTP address to match their current alias, or their Exchange Alias to match their current SMTP address?

Changing their email address to match to match their alias (the former) is easy, create/modify a recipient policy and apply it.

The later is a bit harder to do, as it would require you script out/in (think ldif); a good deal more work and testing is required to ensure you dont break anything with this kind of change.  This is much easier in Exchange 2007 since you can do it with Powershell, but doesnt do you much good if you're on Exchange 2000.

Erik
0
 

Author Comment

by:stiana
ID: 22709270
hi,

i have a exchange 2007 up and running and i can see all the old users, can i use powershell from the exchange 2007 then?

i want the alias to either match email address or the logon name.
0
 

Expert Comment

by:shaoman
ID: 22709302
You can also use ADModify .NET to change properties and attributes on ad objects
0
Backup Solution for AWS

Read about how CloudBerry Backup fully integrates your backups with Amazon S3 and Amazon Glacier to provide military-grade encryption and dramatically cut storage costs on any platform.

 

Author Comment

by:stiana
ID: 22709337
thanks, loooks like a great tool. still i cannot se any field to change the mailnickname field.
0
 
LVL 6

Expert Comment

by:spyordie007
ID: 22711869
great, setting the alias in the Exchange Management Shell is easy and will work for your legacy Exchange (2000) users:
set-mailbox -identity oldalias -alias newalias

You're going to want to play around AND TEST before pulling the trigger in your environment, however you could set the alias for all users to their SamAccountName (as an example, if you wanted to make it more complex you could use other attributes such as UPN) with the following:
Get-Mailbox | ForEach-Object { Get-User $_ | Set-Mailbox -Alias $_.SamAccountName }

Have fun,
Erik
0
 

Author Comment

by:stiana
ID: 22719700
thanks this worked for me:) but when running this command i get this after i ran it

WARNING: By default only the first 1000 items are returned. To change the
number of items returned, specify the parameter "-ResultSize". To return all
items specify "-ResultSize Unlimited" (Note: Returning all items may take a
very long time and consume a large amount of memory depending on the actual
number of items). It is not recommended to store the results in a variable;
instead pipe the results to another task or script to perform batch changes.

where do i but -resultsize unlimited in this code: Get-Mailbox | ForEach-Object { Get-User $_ | Set-Mailbox -Alias $_.SamAccountName }
0
 
LVL 6

Accepted Solution

by:
spyordie007 earned 500 total points
ID: 22720834
The only command here that is going to effect more then a single object is when you run the Get-Mailbox, so:
Get-Mailbox -ResultSize unlimited | ForEach-Object { Get-User $_ | Set-Mailbox -Alias $_.SamAccountName }

Erik
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
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 a Distribution Group 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 Recipients >>…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

749 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