PowerShell Command to Change all Mail-Contact Alias's
When we originally imported mail contacts from Exchange 2003 to Exchange 2007 the alias changed from "first name initial last name" to "first name last name" EX: JSmith to JohnSmith
Is there a powershell command that I can run to change all Mail Contacts alias's to first name initial last name? EX: jsmith
I have no clue how to do anything in power shell so please provide the actual command that I can run to change all Mail Contact alias's (not mailbox users) to "first name initial lastname" that would be great.
Thank you!
March 22nd, 2010 9:05pm
It would be better for you to learn PowerShell because few of
us are willing to compose a script or command and hand it to you without testing
and without feeling confident that you would know what to do with
it.-- Ed Crowley MVP"There are seldom good technological
solutions to behavioral problems.".
"TechInMD" wrote in message news:de48ca40-7150-457a-bbe2-eec2d265f287...
When
we originally imported mail contacts from Exchange 2003 to Exchange 2007 the
alias changed from "first name initial last name" to "first
name last name" EX: JSmith to JohnSmith
Is
there a powershell command that I can run to change all Mail Contacts
alias's to first name initial last name? EX: jsmith
I
have no clue how to do anything in power shell so please provide the actual
command that I can run to change all Mail Contact alias's (not mailbox users)
to "first name initial lastname" that would be great.
Thank
you!
Ed Crowley MVP
"There are seldom good technological solutions to behavioral problems."
Free Windows Admin Tool Kit Click here and download it now
March 23rd, 2010 4:23am
Hi,
For your reference:
create a csv file, eg: c:\contact.csv
Name, NewAlias
John Smith, JSmith
. , .
. , .
Run the cmdlet
Import-csv "c:\contact.csv" | foreach {Get-MailContact - Identity $_.Name | Set-MailContact -Alias $_.NewAlias}
Frank Wang
March 25th, 2010 11:25am
Ed,
Interesting comment?!? Not the response I was expecting from a MS support forum. I will try to fit that into my training schedule. After 15 years in IT and certifications in Cisco, Microsoft, VMWare, and using them all on a daily basis I think it fits within my intellectual capacity to verify a script. Plus, I would test it in a development environment first. Thank goodness for virtualization.
I am posting a question I have seen stated differently in many other forums.
Do me a favor...please don't reply to my posts anymore.
TechinMD
Free Windows Admin Tool Kit Click here and download it now
March 25th, 2010 5:31pm
Thank you Frank! Worked like a charm!
March 25th, 2010 5:33pm