Processing data from remote server failed

Welcome Forums General PowerShell Q&A Processing data from remote server failed

This topic contains 0 replies, has 1 voice, and was last updated by  Forums Archives 7 years ago.

  • Author
  • #6090

    Points: 0
    Rank: Member

    by sxavier at 2013-05-10 02:20:11

    I want to monitor exchange server 2007 using power-shell scripts. Here are the scripts which I have used for that.
    $secpasswd = ConvertTo-SecureString "password" -AsPlainText -Force
    $mycreds = New-object -typename System.Management.Automation.PSCredential("domain\Admin",$secpasswd)
    Enter-pssession –credential $mycreds

    $server='';$pwd= convertto-securestring 'password' -asplaintext -force;
    $cred=new-object -typename System.Management.Automation.PSCredential -argumentlist 'Admin',
    $pwd; invoke-command -computername $server -credential $cred -scriptblock {Add-PSSnapin
    Microsoft.Exchange.Management.PowerShell.Admin; Get-ExchangeServer}

    But I have landed in the following Exception
    [code]Processing data from remote server failed with the following error message: The WSMan provider host process did not return a proper response. A provider in the host process may have behaved improperly. For more information, see the about_Remote_Troubleshooting Help topic.
    + CategoryInfo : OperationStopped: (System.Manageme...pressionSyncJob:
    PSInvokeExpressionSyncJob) [], PSRemotingTransportException + FullyQualifiedErrorId : JobFailure[/code]

    Any help to solve this issue would be great.


The topic ‘Processing data from remote server failed’ is closed to new replies.