Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We currently have a Python script that automates user creation tasks on our servers. This script provisions users in OpenLDAP and ActiveDirectory by using python-ldap.

Now, I want to modify some Exchange attributes as well in this script. I want to know if there is a way to interact with the Exchange Powershell remotely from a UNIX machine. Specifically using Python but if anyone knows any other method, I might be able to use it along with the pexpect library.

share|improve this question
version of Exchange, version of AD DC's? – Bret Fisher May 17 '11 at 15:08
Sorry about omitting that: Exchange 2010 and 2008 R2 DC's. – Belmin Fernandez May 17 '11 at 15:41
up vote 4 down vote accepted

PowerShell can be made available via SSH in at least two ways:

PowerShell scripts also can be invoked via xml-rpc (TechNet forum link).

share|improve this answer

Another option could be accessing Exchange 2010 through web services, using the SDK to see some examples, as well as PowerShell examples here. Would love to see some of your end results posted here to help others.

share|improve this answer

Your Answer


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.