无法监控Exchange Server 2007 [英] Unable to monitor Exchange Server 2007
本文介绍了无法监控Exchange Server 2007的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使用PowerShell脚本监控Exchange Server 2007。以下是我用过的脚本。
$ secpasswd = ConvertTo-SecureStringpassword-AsPlainText -Force
$ mycreds = New-object -typename System.Management.Automation.PSCredential(domain\Admin,
$ secpasswd)
Enter-pssession 192.168.1.153 -credential $ mycreds
$ server ='client-pc-1.domain.com'; $ 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}
但我已经落入以下例外
处理来自远程服务器的数据失败了以下错误消息:
WSMan提供程序主机进程未返回正确的响应。
主机进程中的提供程序可能表现不正常。有关详细信息,请参阅
about_Remote_Troubleshooting帮助主题。
+ CategoryInfo:OperationStopped:(System.Manageme ... pressionSyncJob:
PSInvokeExpressionSyncJob)[],PSRemotingTransportException + FullyQualifiedErrorId:JobFailure
任何人都可以帮我解决这个问题吗?
谢谢&问候
Sebastian
解决方案
secpasswd = ConvertTo-SecureStringpassword-AsPlainText -Force
mycreds = New-object -typename System.Management.Automation.PSCredential(domain\Admin,
secpasswd)
Enter-pssession 192.168.1.153 -credential
Hi,
I want to monitor exchange server 2007 using powershell 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 192.168.1.153 –credential $mycreds
$server='client-pc-1.domain.com';$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
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
Can anyone please help me to solve this?
Thanks & regards
Sebastian
解决方案
secpasswd = ConvertTo-SecureString "password" -AsPlainText -Force
mycreds = New-object -typename System.Management.Automation.PSCredential("domain\Admin",
secpasswd) Enter-pssession 192.168.1.153 –credential
这篇关于无法监控Exchange Server 2007的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文