Quantcast
Channel: Exchange Server Development forum
Viewing all articles
Browse latest Browse all 7132

Unable to connect Powershell Virtual directory using Powershell

$
0
0

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


Viewing all articles
Browse latest Browse all 7132

Trending Articles