在针对服务器2007的管理工具2010上运行远程powershell get-activesync设备时出错

时间:2012-07-05 05:25:41

标签: powershell

我们公司有很多网站,有些服务器是2007年,其他服务器是2010年,我在win2008中安装了交换管理工具版本2010年,并尝试报告所有的activesync设备。

首先,我运行get-activesyncdevice,它会导致异常。

PS C:\Users\administrator.BECK07> Get-ActiveSyncDevice -Mailbox "perf-user0611"
The Get-ActiveSyncDevice cmdlet can only retrieve device information for 14 mailboxes.
At line:1 char:1
+  <<<< Get-ActiveSyncDevice -Mailbox "perf-user0611"
    + CategoryInfo          : InvalidArgument: (:) [], TaskNotSupportedOnVersionException
    + FullyQualifiedErrorId : AFA99CB5

所以,我想我可以使用命令get-activesyncdevicestatistic但它仍然会弹出异常。

PS C:\Users\administrator.BECK07> Get-ActiveSyncDeviceStatistics -mailbox "perf-user0611"
Get-ActiveSyncDeviceStatistics : The Get-ActiveSyncDeviceStatistics command that you are trying to run, which is version 14, requires that the target mailbox account is on a Mailbox server that is the same version. The command wasn't able to process your request because the target mailbox account is on a Mailbox server with version 8. Please use this version (Version: 8) of the Get-ActiveSyncDeviceStatistics command.
At line:1 char:31
+ Get-ActiveSyncDeviceStatistics <<<<  -mailbox "perf-user0611"
    + CategoryInfo          : InvalidArgument: (:) [Get-ActiveSyncDeviceStatistics], ServerVersionNotSupportedException + FullyQualifiedErrorId : A81A5D,Microsoft.Exchange.Management.Tasks.GetMobileDeviceStatistics

如何获取邮箱版本的activesync设备信息是2007?提前谢谢

这是我收到邮箱版本时的结果。

PS C:\Users\administrator.BECK07> Get-Mailbox "perf-user0611" | fl exchangeversion

ExchangeVersion : 0.1 (8.0.535.0)

1 个答案:

答案 0 :(得分:0)

Exchange 2010管理工具不是backwards compatible。您需要安装两个管理工具,并根据您管理的Exchange选择版本。