【问题标题】:O365 search-mailbox email type errorO365 搜索邮箱电子邮件类型错误
【发布时间】:2016-06-07 22:31:12
【问题描述】:

我需要删除已终止用户提出的会议请求。我一直在关注Deleting Meeting Requests made by terminated users 的脚本,但收到以下错误:

Please adjust the email type. Make sure the email type is supported.
+ CategoryInfo          : InvalidArgument: (:) [], ParserException
+ FullyQualifiedErrorId : [Server=BLUPR0501MB1828,RequestId=ea14893a-dd30-4808-aeb5-0e85cbe7eb3b,TimeStamp=6/7/2016 2:21:27 PM] [FailureCategory=Cmdlet-ParserException] 95B6EDE8
+ PSComputerName        : ps.outlook.com

我的命令行是这样的(当然有编辑):

$room | search-mailbox -SearchQuery "kind:calendar AND from:$($user)" -targetmailbox adminuser@domain.com -TargetFolder "deleted meetings"

其中 $user 是用户的 UPN,$room 是从查询中提取的。

我已经查看过,但似乎无法确定错误的原因。

谢谢

【问题讨论】:

    标签: powershell exchange-server azure-powershell


    【解决方案1】:

    找到了。 AQS 语法不正确。 "kind:calendar" 应该是 "kind:meetings"

    【讨论】:

      猜你喜欢
      • 2015-05-12
      • 2012-11-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-11-21
      • 1970-01-01
      • 2017-12-21
      • 2016-02-26
      相关资源
      最近更新 更多