无法使用Power Shell远程查询Exchange Server 2010 [英] Unable to remote query Exchange server 2010 using power shell

查看:133
本文介绍了无法使用Power Shell远程查询Exchange Server 2010的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望使用Power Shell查询Exchange Server 2010.我的交换服务器2010安装在Windows Server 2008 R2上.我得到了以下查询get-mailbox XXX的结果.但是,由于我想从远程PC进行查询,因此我尝试了如下操作...

I wish to query exchange server 2010 using power shell. My exchange server 2010 is mount at Windows server 2008 R2. I have got the result with the following query get-mailbox XXX. But as I want to query it from a remote PC, I have tried it as follows ...

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


但它给出了一个错误

Active Directory操作在WIN-XXX上失败.
上提供的"ABC \ Administrator"凭据 绑定操作无效.错误代码:0x31.
+ CategoryInfo:未指定:(:)[],ADInvalidCredentialException
+ FullyQualifiedErrorId:5C9B4453


有人可以帮我吗?

谢谢&问候

Sebstian


But it gives an error

Active Directory operation failed on WIN-XXX. The supplied credential for ''ABC\Administrator'' on
Bind operation is invalid. Error Code: 0x31.
+ CategoryInfo : NotSpecified: ( : ) [], ADInvalidCredentialException
+ FullyQualifiedErrorId : 5C9B4453


Can anybody help me on this?

Thanks & regards

Sebstian

推荐答案

server = ' WIN-XXX';
server='WIN-XXX';


pwd = convertto-securestring ' abc123' -asplaintext -force;
pwd= convertto-securestring 'abc123' -asplaintext -force;


cred = new-object -typename System.Management.Automation.PSCredential -argumentlist ' WIN-XXX \ Administrator'
cred=new-object -typename System.Management.Automation.PSCredential -argumentlist 'WIN-XXX\Administrator',


这篇关于无法使用Power Shell远程查询Exchange Server 2010的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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