Exchange 2007命令失败,出现异常 [英] Exchange 2007 Command failed with an exception
本文介绍了Exchange 2007命令失败,出现异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我试图执行以下Exchange Server 2007(powershell)命令。
Hi All,
I was trying to execute following exchange server 2007 (powershell) command.
$server='exchangeserver.abc.local';$pwd= convertto-securestring '123' -asplaintext -force;$cred=new-object -typename System.Management.Automation.PSCredential -argumentlist 'Administrator',$pwd; invoke-command -computername $server -credential $cred -scriptblock {Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Admin; get-mailbox Administrator}
但是在以下例外中降落......
But landed in the following exception...
Processing data for a remote command 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
我在powershell 1.0& 2.0
任何帮助都会很棒。
问候
Sebastian
I have tried it in both powershell 1.0 & 2.0
Any help on this would be great.
Regards
Sebastian
推荐答案
server ='exchangeserver.abc.local';
server='exchangeserver.abc.local';
pwd = convertto-securestring'123'-asplaintext - force;
pwd= convertto-securestring '123' -asplaintext -force;
cred = new-object -typename System.Management.Automation.PSCredential -argumentlist'Administrator',
cred=new-object -typename System.Management.Automation.PSCredential -argumentlist 'Administrator',
这篇关于Exchange 2007命令失败,出现异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文