O365 search-mailbox 电子邮件类型错误
O365 search-mailbox email type error
我需要删除已终止用户提出的会议请求。我一直在遵循 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 已从查询中提取。
我已经看过,但似乎无法确定错误的原因。
谢谢
找到了。 AQS 语法不正确。 "kind:calendar" 应该是 "kind:meetings"
我需要删除已终止用户提出的会议请求。我一直在遵循 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 已从查询中提取。
我已经看过,但似乎无法确定错误的原因。
谢谢
找到了。 AQS 语法不正确。 "kind:calendar" 应该是 "kind:meetings"