Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I can't seem to find a way to run the various Exchange tasks (Establish E-mail Address, Remove Exchange Attributes, Create Mailbox, etc) from Powershell. It seems unlikely to me that Exchange tasks are not possible to automate; does someone have a starting point for me to automate repetetive Exchange tasks?

PowerShell would be the preferred language, but if there is no way but via .NET or similar I could go that route.

share|improve this question

2 Answers 2

up vote 8 down vote accepted

You can script everything for Exchange in PowerShell, assuming you're on 2010. You can script and awful lot in 2007 as well.

Here is a good resource for Exchange 2010 scripting.

Also, I know that "Google it" is not an acceptable answer here, which is why I provided you with a real answer, but there are literally hundreds of useful results when googling Exchange AND PowerShell.

share|improve this answer
    
I spent half an hour googling for 'exchange "establish e-mail address" scripting OR powershell' (and variations) and found crap for results... no api documentation. I then came here and searched for exchange scripting and found crap for results. Perhaps I was too specific in my googling, but that was the specific task I wanted to perform. -5 for the question? I can understand if it had been asked 10 times before, but there is no answer to that question on serverfault... OR stackoverflow. –  Myrddin Emrys Aug 4 '11 at 5:03
    
@Myrddin - PowerShell is so fundamentally integrated into Exchange now that if you had even browsed the documentation for it you would have seen it. People tend to downvote users that come here first before reading the docs. Glad this helped you, though. –  MDMarra Aug 4 '11 at 12:56

Have a look at the Exchange Management Shell (It's a PowerShell module). It's installed with Exchange 2007 and above, and in fact it in essence is Exchange. All tasks performed in the Exchange Management Console are in fact just EMS commands. Every time you perform a task in the EMC, it will show you the exact EMS command that it is running "behind the scenes." That alone is a great learning tool.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.