dartne
05-02-2014, 10:41
Подскажите нужно удалить по теме письма, или по отправителю письмо с ящика, с всего сервера, делаю так:
Search-Mailbox -Identity "Иванов Иван Иванович" -SearchQuery "Subject:Тема сообщения" -DeleteContent
Получаю:
[PS] C:\Windows\system32>Search-Mailbox -Identity "Иванов Иван Иванович" -SearchQuery "Subject:Тема сообщения" -DeleteContent
The term 'Search-Mailbox' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:15
+ Search-Mailbox <<<< -Identity "Иванов Иван Иванович" -SearchQuery "Subject:Тема сообщения" -
DeleteContent
+ CategoryInfo : ObjectNotFound: (Search-Mailbox:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Search-Mailbox -Identity "Иванов Иван Иванович" -SearchQuery "Subject:Тема сообщения" -DeleteContent
Получаю:
[PS] C:\Windows\system32>Search-Mailbox -Identity "Иванов Иван Иванович" -SearchQuery "Subject:Тема сообщения" -DeleteContent
The term 'Search-Mailbox' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:15
+ Search-Mailbox <<<< -Identity "Иванов Иван Иванович" -SearchQuery "Subject:Тема сообщения" -
DeleteContent
+ CategoryInfo : ObjectNotFound: (Search-Mailbox:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException