Powershell O365搜索邮箱电子邮件类型错误

Powershell O365搜索邮箱电子邮件类型错误,powershell,exchange-server,azure-powershell,Powershell,Exchange Server,Azure Powershell,我需要删除终止用户发出的会议请求。我一直在跟踪上的脚本,但收到以下错误: Please adjust the email type. Make sure the email type is supported. + CategoryInfo : InvalidArgument: (:) [], ParserException + FullyQualifiedErrorId : [Server=BLUPR0501MB1828,RequestId=ea14893a-dd30-480

我需要删除终止用户发出的会议请求。我一直在跟踪上的脚本,但收到以下错误:

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
我的命令行是这样的(当然有编辑):

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

我已经看过了,似乎无法确定错误的原因在哪里


谢谢你找到了它。AQS语法不正确。“种类:日历”应为“种类:会议”

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