Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Powershell 搜索邮箱-使用符号搜索查询主题_Powershell_Exchange Server - Fatal编程技术网

Powershell 搜索邮箱-使用符号搜索查询主题

Powershell 搜索邮箱-使用符号搜索查询主题,powershell,exchange-server,Powershell,Exchange Server,我在搜索主题包含符号的电子邮件时遇到了一个问题。我尝试了不同的方法,但没有找到任何结果 Search-Mailbox -identity identity -SearchQuery "subject:test:dog/cat" -DeleteContent -Force -Confirm:$false Search-Mailbox -identity identity -SearchQuery "subject:'test:dog/cat'" -D

我在搜索主题包含符号的电子邮件时遇到了一个问题。我尝试了不同的方法,但没有找到任何结果

Search-Mailbox -identity identity -SearchQuery "subject:test:dog/cat" -DeleteContent -Force -Confirm:$false


  Search-Mailbox -identity identity -SearchQuery "subject:'test:dog/cat'" -DeleteContent -Force -Confirm:$false


  Search-Mailbox -identity identity -SearchQuery 'subject:"test:dog/cat"' -DeleteContent -Force -Confirm:$false
使用KQLQuery也没有帮助

$subject = "test:dog/cat"


$search =  "subject:$subject"


$KQLQuery =[scriptblock]::create($search)
请大家帮忙:(