Connecting to Exchange PowerShell from a Linux machine

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.


Solution 1:

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

  • via Cygwin (tutorial)
  • via commercial software called PowerShell Inside

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

Solution 2:

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.