I need to edit a powershell script that creates new users and add a section that creates them a mailbox, problem I am having is that I need it to check the first letter of the username to determine whether it creates it in 'Store A-M' or 'Store A-Z' databases. From what I can tell I can import exchange module into powershell (I won't be in exchange shell) and use the enable-mailbox cmdlet, just having problems trying it all in . Any help would be appreciated
Edit: I am running exchange 2010 ona 2008R2 box, but will more than likely run the script from a 2012 R2 server.