Usuário com melhor resposta
Deletando mensagem da caixa do usuário

Pergunta
-
Senhores, gostaria de saber se eu tenho como deletar uma mensagem da caixa dos meus usuários via cmdlet.
Ex: quem tiver na sua caixa uma mensagem com assunto teste delete, ou que o e-mail de origem sejá teste@contoso.com.
Tem como ser feito?
MCSA+S - MCTS - MCITP - ITIL - STS- Editado Raphael RGA Tecnologia sexta-feira, 23 de outubro de 2009 12:47 erro de digitação
Respostas
-
Vc pode usar o export-mailbox para isto com a opçao de deleçao.
Grande abraço,
Anderson Patricio
Exchange and OCS resource site:http://www.andersonpatricio.org
Blog (BR): http://blog.andersonpatricio.org
MSExchange Blog: http://blogs.msexchange.org/patricio
Blog (EN): http://msmvps.org/blogs/andersonpatricio
Twitter: http://twitter.com/apatricio
- Marcado como Resposta Raphael RGA Tecnologia sexta-feira, 23 de outubro de 2009 13:04
Todas as Respostas
-
Vc pode usar o export-mailbox para isto com a opçao de deleçao.
Grande abraço,
Anderson Patricio
Exchange and OCS resource site:http://www.andersonpatricio.org
Blog (BR): http://blog.andersonpatricio.org
MSExchange Blog: http://blogs.msexchange.org/patricio
Blog (EN): http://msmvps.org/blogs/andersonpatricio
Twitter: http://twitter.com/apatricio
- Marcado como Resposta Raphael RGA Tecnologia sexta-feira, 23 de outubro de 2009 13:04
-
-
Anderson estou tentando executar o Export-Mailbox mas esta dando erro no comando.
Erro:
Export-Mailbox : The input object cannot be bound to any parameters for the com
mand either because the command does not take pipeline input or the input and i
ts properties do not match any of the parameters that take pipeline input.
At line:1 char:58
+ Get-Mailbox -Database "Mailbox Database" | Export-Mailbox <<<< -Identity contoso\amanda -SenderKeywords seguranca@netmail2.bradesco.com.br -DeleteContent
O comando que estou executando é o seguinte:
[PS] C:\Documents and Settings\raphael.oliveira>Get-Mailbox -Database "Mailbox D
atabase" | Export-Mailbox -Identity contoso\amanda -SenderKeywords seguranca@net
mail2.bradesco.com.br -DeleteContent
Tem alguma coisa errada?
MCSA+S - MCTS - MCITP - ITIL - STS -
Using filtering to Export and delete mailbox content:
Export and delete all messages that contain "Confidential" in their subject from all mailboxes from the DB1 database to a folder called ConfidentialData in the Administrator mailbox:
Get-mailbox -database 'DB1' | export-mailbox –SubjectKeywords "Confidential" -TargetFolder "ConfidentialData" -TargetMailbox Administrator –DeleteContent
Export and deletes all messages that have an attachment that contains the word "movie" in its name from all mailboxes from the DB1 database to a folder called MovieAttachmentMessages in the Administrator mailbox:
Get-mailbox -database 'DB1' | export-mailbox –AttachmentFilenames "movie" -TargetFolder "MovieAttachmentData" -TargetMailbox Administrator –DeleteContent
Export and deletes all messages that contains the word "virus" in its body or in its attachment body from all mailboxes from the DB1 to a folder called VirusMessages in the Administrator mailbox:
Get-mailbox -database 'DB1' | export-mailbox -ContentKeywords "virus" -TargetFolder "VirusMessages" -TargetMailbox Administrator –DeleteContent
Fonte: http://msexchangeteam.com/archive/2006/11/28/431669.aspx
Diego Wachholz - MCSA/MCTS - Microsoft Exchange Server 2007 -
Ola Raphael,
O comando é aquele ali na verdade tu quer limpar a database toda? se tu vai usar um pipe nao pode usar identity pq nao faz sentido.
Se for para mover a database toda, vale mais a pena usar Get-mailbox -database XX | move-mailbox -targetdatabase YY -configurationonly com isto tu vira tudo em uma linha.
Grande abraço,
Anderson Patricio
Exchange and OCS resource site:http://www.andersonpatricio.org
Blog (BR): http://blog.andersonpatricio.org
MSExchange Blog: http://blogs.msexchange.org/patricio
Blog (EN): http://msmvps.org/blogs/andersonpatricio
Twitter: http://twitter.com/apatricio