我们公司有很多站点,有的服务器是2007的,有的服务器是2010的,我在win2008上安装了exchange管理工具版本是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
如何获取邮箱版本为 2007 的 activesync 设备信息?提前致谢
这是我获得邮箱版本时的结果。
PS C:\Users\administrator.BECK07> Get-Mailbox "perf-user0611" | fl exchangeversion
ExchangeVersion : 0.1 (8.0.535.0)