Unable to connect Powershell Virtual directory using Powershell

Hi All,

I am trying to connect our Powershell Virtual Directory using powershell command as below. This is our requirement for one of new MDM solution we brought Airwatch. Our plan is to reject direct Activesync connection and it should come to Airwatch.

According to Air-watch this can be achieved by getting the Airwatch service account to connect to the Exchange powershell virtual directory, below is some test which i have performed using the service account. 

$cred = get-credentials

$session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri "http://Exchange2010.fqdn.com/powershell" -Credential $cred -Authentication Negotiate -AllowRedirection.

But unluckily i end up getting below error, tried all various option.

[Exchange2010.fqdn.com] Connecting to remote server failed with the following error message : The WinRM client cannot process the request. Un
encrypted traffic is currently disabled in the client configuration. Change the client configuration and try the request again. For more information,
 see the about_Remote_Troubleshooting Help topic.
    + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [], PSRemotingTransportException
    + FullyQualifiedErrorId : PSSessionOpenFailed


July 14th, 2015 5:42am

Configure Kerberos Authentication
  1. Start Internet Information Services (IIS) Manager.

  2. In the Connections pane, expand Default Web Site, and then click PowerShell.

  3. In the /PowerShell Home pane, double-click Modules.

  4. Confirm that Kerbauth is a native module.

  5. Confirm that the path of the Kerbauth.dll file is C:\Program Files\Microsoft\Exchange Server\v14\Bin\kerbauth.dll.

  6. Verify that the Kerbauth module is registered but not enabled on the default Web site. To do this, follow these steps:

    1. Click the default Web site in the Connections pane, and then double-click Modules in the results pane.

    2. In the Actions pane, click Configure Native Modules.

    3. If Kerbauth is not listed in the Configure Native Modules dialog box, click Register. In the Register Native Module dialog box, type the name and path of the Kerbauth module, and then click OK.

    4. If Kerbauth is enabled, click to clear the Kerbauth check box.

    5. Click OK.

Free Windows Admin Tool Kit Click here and download it now
July 14th, 2015 6:02am

Thanks for the post, i had already check the above steps but it all looked fine as mentioned above
July 14th, 2015 6:11am

Well i was able to figure out i need to put in Kerberos authentication method to connect. I changed it and it worked.
Free Windows Admin Tool Kit Click here and download it now
July 15th, 2015 1:27am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics