Exchange服务器命令中的错误 [英] Error in Exchange server commands

查看:240
本文介绍了Exchange服务器命令中的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我正在使用Power Shell和Exchange Server2010.我可以使用以下命令获取邮箱详细信息

Hello,

I am working with power shell and Exchange server 2010. I was able to get mailbox details using the following command

$server='WIN-APRJ2923AV5.abc.com';$pwd= convertto-securestring 'Global123$' -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.E2010; get-mailbox xyz}



我已经尝试使用IP地址而不是Computername来使用此命令....



I have tried this command with IP address instead of Computername....

$server='192.168.1.194';$pwd= convertto-securestring 'Global123$'-asplaintext -force;$cred=new-object -typename System.Management.Automation.PSCredential -argumentlist 'WIN-APRJ2923AV5.abc.com\Administrator',$pwd; invoke-command -computername $server -credential $cred -scriptblock {Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010; get-mailbox xyz}



但这引发了如下异常



But it threw an exception as follows

[192.168.1.194] Connecting to remote server failed with the following error message : The WinRM client cannot process the request. Default authentication may be used with an IP address under the following conditions: the transport is HTTPS or the destination is in the TrustedHosts list, and explicit credentials are provided. Use winrm.cmd to configure TrustedHosts. Note that computers in the TrustedHosts list might not be authenticated. For more information on how to set TrustedHosts run the following command: winrm help config. For more information, see the about_Remote_Troubleshooting Help topic.
    + CategoryInfo          : OpenError: (:) [], PSRemotingTransportException
    + FullyQualifiedErrorId : PSSessionStateBroken



第二个查询有什么问题?有人可以帮我吗?

谢谢&问候
Sebastian



What is the problem with second query? Can anyone help me on this?

Thanks & Regards
Sebastian

推荐答案

server = ' WIN-APRJ2923AV5.abc.com ';
server='WIN-APRJ2923AV5.abc.com';


pwd = convertto-securestring ' 全局123
pwd= convertto-securestring 'Global123


' -asplaintext -force;
' -asplaintext -force;


这篇关于Exchange服务器命令中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆