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.

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

2 Answers 2

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

 
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.