How can I automate email alias generation in Exchange 2007?
My company wants to automate the generation of email addresses so we have a unique email address for each of our partners. I assume a script can be written to do this, but I am more of an administrator than a developer. I've used the Exchange Management Shell a little bit, but it's been overwhelming trying to grasp how I can achieve this.First Question: How can I add an email alias to an existing mailbox via the Exchange Management Shell? I've searched high and low but everything seems to pertain to creating an alias in EMS for shortcuts. I'm talking about adding another SMTP email address as an alias to an existing mailbox. Specific syntax would be phenomenal.Second Question: How can I automate this? I've read this page Scripting with the Exchange Management Shell which helped me understand how I can run the script. Can anyone confirm that PowerShell scripts can be run from a remote server? If so, can it be invoked from the remote server's command-line with something like the following? Assuming of course PowerShell is installed on said remote server?PowerShell.exe -PSConsoleFile "\\exchangesrv\C$\Program Files\Microsoft\Exchange Server\Bin\ExShell.Psc1" -Command ". 'C:\My Scripts\RetrieveMailboxes.ps1'"Thanks in advance!13lind
February 19th, 2010 5:32pm

Hello, Do you mean adding a additional email address to the users mailbox? -------------------- Mahendra
Free Windows Admin Tool Kit Click here and download it now
February 19th, 2010 6:21pm

I'm assuming this is Exchange 2007? To add another smtp address try this:$mb = Get-Mailbox username$mb.EmailAddresses += "username@contoso.com"$mb | Set-MailboxAs far as running scripts remotely, for 2007 you need to install the Exchange management tools and PowerShell on your workstation.
February 20th, 2010 12:13am

Hi,I'd like to clarify the issue with you first.1. You want to add another email address on the same account,is that ture?2. Do you want to set the other emial address as the primary email address?3. How did you add the additional e-mail address?4. For what purpose that you want to set alais on the other emial address? Want to show it in GAL??Related information:Set-Mailboxhttp://technet.microsoft.com/en-us/library/bb123981(EXCHG.80).aspx Regards,Xiu
Free Windows Admin Tool Kit Click here and download it now
February 22nd, 2010 10:55am

Is there a way to adding new addresses changing only the 'at' part? Hey Guys! I'm very green on Exchange but I tried the shell and I couln't leave it anymore!! You can do A LOT! from there and best of all you can Script it so you can use it later! so heres the thing: I need to add new addresses to an E-mail Account to enable it to Send/receive external mailing. Is there a way to copy ONLY the account name and changing the 'at' part? Example: take the 'johndoe' from 'johndoe@anywhere.com' and generate this 3 new addresses: 'johndoe@anything.com' 'johndoe@anyhow.com' 'johndoe@anyone.com' Regards! PS: I'm also looking for a good basic tutorial about Exchange shell, If anyone knows.... Thanks in advance!
November 5th, 2010 12:12pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics