【发布时间】: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