none
Unable to connect Powershell Virtual directory using Powershell RRS feed

  • Question

  • 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



    BR/Deepak

    Tuesday, July 14, 2015 9:41 AM

Answers

  • Well i was able to figure out i need to put in Kerberos authentication method to connect. I changed it and it worked.

    BR/Deepak

    • Marked as answer by TheLearner007 Wednesday, July 15, 2015 5:26 AM
    Wednesday, July 15, 2015 5:26 AM

All replies

  • Thanks for the post, i had already check the above steps but it all looked fine as mentioned above

    BR/Deepak

    Tuesday, July 14, 2015 10:09 AM
  • Well i was able to figure out i need to put in Kerberos authentication method to connect. I changed it and it worked.

    BR/Deepak

    • Marked as answer by TheLearner007 Wednesday, July 15, 2015 5:26 AM
    Wednesday, July 15, 2015 5:26 AM