Orchestrator : Automate exchange Actions !


Hello,

First of all happy 2014 !

Orchestrator is great. It allows you to automate lots of ICT related tasks and there are a bunch of integration packs out there.

Let’s automate some exchange actions.

First download and deploy the Exchange admin integration pack from here : http://www.microsoft.com/en-us/download/details.aspx?id=34611

Now create a test runbook and add an action for creating a mailbox after the necesarry connection parameters have been supplied.

Now test !


The exact error is :

Error opening remote PowerShell runspace to endpoint http://srvexch01.rdsolutions.local/powershell: Connecting to remote server failed with the following error message : The WinRM client cannot process the request. The authentication mechanism requested by the client is not supported by the server or unencrypted traffic is disabled in the service configuration. Verify the unencrypted traffic setting in the service configuration or specify one of the authentication mechanisms supported by the server. To use Kerberos, specify the computer name as the remote destination. Also verify that the client computer and the destination computer are joined to a domain. To use Basic, specify the computer name as the remote destination, specify Basic authentication and provide user name and password. Possible authentication mechanisms reported by server: For more information, see the about_Remote_Troubleshooting Help topic.Error opening remote PowerShell runspace to endpoint http://srvexch01.rdsolutions.local/powershell: Connecting to remote server failed with the following error message : The WinRM client cannot process the request. The authentication mechanism requested by the client is not supported by the server or unencrypted traffic is disabled in the service configuration. Verify the unencrypted traffic setting in the service configuration or specify one of the authentication mechanisms supported by the server. To use Kerberos, specify the computer name as the remote destination. Also verify that the client computer and the destination computer are joined to a domain. To use Basic, specify the computer name as the remote destination, specify Basic authentication and provide user name and password. Possible authentication mechanisms reported by server: For more information, see the about_Remote_Troubleshooting Help topic.

Exception: ExchangeGatewayException

Target site: RemoteExchangeGateway.OpenRunspace

Stack trace:

at SystemCenter.IntegrationPack.ExchangeAdmin.Gateway.Core.RemoteExchangeGateway.OpenRunspace()

at SystemCenter.IntegrationPack.ExchangeAdmin.Domain.ExchangeGatewayFactory.CreateRemote(ExchangeConfiguration configuration, IActivityLogger logger)

at SystemCenter.IntegrationPack.ExchangeAdmin.Domain.ExchangeGatewayFactory.CreateGateway(ExchangeConfiguration configuration, IActivityLogger logger)

at SystemCenter.IntegrationPack.ExchangeAdmin.Activity.ExchangeActivity.Execute(IActivityRequest request, IActivityResponse response)

Now check the prereqs precisely.

http://technet.microsoft.com/en-us/library/jj614529.aspx

Specifically the WinRm settings :


Hmmm… strange now I recieve the following error



Error opening remote PowerShell runspace to endpoint http://srvexch01.rdsolutions.local/powershell: Connecting to remote server failed with the following error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic.

Exception: ExchangeGatewayException

Target site: RemoteExchangeGateway.OpenRunspace

Stack trace:

at SystemCenter.IntegrationPack.ExchangeAdmin.Gateway.Core.RemoteExchangeGateway.OpenRunspace()

at SystemCenter.IntegrationPack.ExchangeAdmin.Domain.ExchangeGatewayFactory.CreateRemote(ExchangeConfiguration configuration, IActivityLogger logger)

at SystemCenter.IntegrationPack.ExchangeAdmin.Domain.ExchangeGatewayFactory.CreateGateway(ExchangeConfiguration configuration, IActivityLogger logger)

at SystemCenter.IntegrationPack.ExchangeAdmin.Activity.ExchangeActivity.Execute(IActivityRequest request, IActivityResponse response)

Now let’s modify the username in the connection, add the domain


And … success



Now you can take the lift of the exchange team.

Enjoy

Gino D


Advertisements

2 Responses to Orchestrator : Automate exchange Actions !

  1. […] Then I came across this across this blog article: https://dynamicdatacenter.wordpress.com/2014/01/15/orchestrator-automate-exchange-actions/. […]

  2. […] Then I came across this across this blog article: https://dynamicdatacenter.wordpress.com/2014/01/15/orchestrator-automate-exchange-actions/. […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s