Scripting with Exchange
I have two servers, both running WIndows Server 2008 r2. One is the AD/DNS server, the other the Exchange server.
I have a PowerShell script that creates an AD user. I would like this script to also create a mailbox for the user on the Exchange server.
Ideally, this script would run on the AD server and somehow add the mailbox. If necessary, it could run on the Exchange server, but I'd prefer the former.
Is this possible?
Regards,
Gary
June 7th, 2011 11:10am
It's possible, but without better information (like what Exchange version you've got) it's very difficult to say exactly how.[string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "
Free Windows Admin Tool Kit Click here and download it now
June 7th, 2011 11:53am
I'm sorry, I forgot to include I'm running Exchange 2010 SP1
June 7th, 2011 4:13pm
You should be able to install the Exchange management tools on the AD box. Once the account is created it's just a matter of running enable-mailbox for the new user, and then set-mailbox to get all the mailbox settings like. If you're using the
Active Directory module for the account creation script, you can start with an Exchange EMS shell, and then import the AD module into that.[string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "
Free Windows Admin Tool Kit Click here and download it now
June 7th, 2011 4:27pm
Hi,
How to install Exchange management Tools:
http://technet.microsoft.com/en-us/library/bb232090.aspx
Enable-mailbox
http://technet.microsoft.com/en-us/library/aa998251.aspx
Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
June 15th, 2011 3:05am