I need to create lots of email aliases (more than I want to do manually), so I want to know if there's a way I can script the addition of aliases to existing mailboxes/users. I don't mind if I have to use powershell or an external tool or not.
For each existing user, I need to create a number of new email aliases.
I have, as an example:
[email protected]
I then want to create:
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
...
Thanks
When you say "alias" do you mean email address (because in Exchange parlance an alias and an email address are two different things)? If so, why not just add the email address to your Recipient Policy?
EDIT
If you want to add the new email address to all users then add the email address to your existing default Recipient Policy. If you want to add the email address to a subset of users then you'll need to create a new Recipient Policy using a filter that is applicable to this subset of users (an LDAP filter based on some attribute of these users, such as department or office for example).
http://support.microsoft.com/kb/319201
A few lines of powershell will do this for you:
This gets a list of all mailboxes in an OU called "OU Name" (you can change the filter to suit your needs) and then sets an alias on each these mailboxes. Obviously you can use the mailbox object to get the name, UPN etc to use as part of your alias if you wish.