Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 265
  • Last Modified:

rename exchange2003 alias

Hi,

We are starting to replicate from EX2003 to EX2010 than found that Alias with spaces and ponctuation are not accepted in 2010 and cause problems.
So, i want to rename them but have more than thousand and many of them are public folders. Same thing with "Schedule+Free/busy" (Alias with spaces).
Did somebody do that before and with a special way ?

Tks
0
rmailloux
Asked:
rmailloux
  • 3
2 Solutions
 
David CarrCommented:
From an Exchange 2010 Server you can run the following PowerShell from the Exchange Mangement Shell. This will remove space from the mailbox users.
Get-Mailbox | Where {$_.Alias -like "* *"} | ForEach-Object {Set-Mailbox $_.Name -Alias:($_.Alias -Replace " ","")}

Open in new window


For public folders use the following PowerShell:
Get-PublicFolder -identity "\" -Recurse -ResultSize Unlimited | Get-MailPublicFolder | Where {$_.Alias -like "* *"} | ForEach-Object {Set-MailPublicFolder $_.identity -Alias:($_.Alias -Replace " ","")}

Open in new window

0
 
rmaillouxAuthor Commented:
Hy Gkrew,

I did it before but it's look like if nothing change...
I'm trying it anothertime now but no answer at the shell.... look if it's working but nothing...(?)
I know that the "schedule+Free/busy" did'nt change because i have some problem with it....
0
 
rmaillouxAuthor Commented:
Is there a way to verbose the result of the command or to see if it's working ?
0
 
ThinkPaperCommented:
you should be able to run this command first

$VerbosePreference = Continue

Then run your other powershell commands

http://technet.microsoft.com/en-us/library/hh847796.aspx
0
 
rmaillouxAuthor Commented:
Tks a lot !
0

Featured Post

Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now