You still need the -DeleteContent switch

On Fri, Feb 27, 2009 at 1:00 PM, Kennedy, Jim
<kennedy...@elyriaschools.org>wrote:

>  Closer.
>
>
>
> [PS] C:\>Get-Mailbox -ResultSize unlimited | export-mailbox
> -SubjectKeywords "Yo
>
> u have got a new E-Card from a friend!" -PSTFolderPath C:\PSTFiles
>
>
>
> Is creating pst’s for each user. But not deleting the messages in question.
> And the pst’s contain a bunch of other mail that should not be included for
> many users. I am getting the calendars also.  But empty pst’s for many
> users, and these empty ones have the subjects I need to delete.
>
>
>
> I am running this one from my desktop. There is one CAS and to mailbox
> servers if that is important.
>
>
>
>
>
> *From:* Michael B. Smith [mailto:mich...@theessentialexchange.com]
> *Sent:* Friday, February 27, 2009 1:38 PM
> *To:* MS-Exchange Admin Issues
> *Subject:* RE: Help export-mailbox issues (a bit urgent)
>
>
>
> Target it to a PST instead of a mailbox.
>
>
>
> *From:* Kennedy, Jim [mailto:kennedy...@elyriaschools.org]
> *Sent:* Friday, February 27, 2009 1:27 PM
> *To:* MS-Exchange Admin Issues
> *Subject:* Help export-mailbox issues (a bit urgent)
>
>
>
> Exchange 2007. I am certain the account I am using has access to all the
> mailboxes.
>
>
>
> We got tagged with an ecard virus. How it got through the spam/virus filter
> is under investigation. In the meantime I need to delete messages from a
> bunch of mailboxes with a specific subject.
>
>
>
> From powershell I issue:
>
>
>
> Get-Mailbox -ResultSize unlimited | ex
>
> port-mailbox -SubjectKeywords "You have got a new E-Card from a friend!"
> -Target
>
> folder ECards -TargetMailbox KennedyJim -DeleteContent
>
>
>
> Trying to get it to copy them to a folder in my mailbox then delete them.
> But I honestly don’t care about the copy. But it seems to be mandatory. Here
> is the error I am getting:
>
>
>
> Export-Mailbox : The source mailbox 'Kennedy, Jim' and target mailbox
> 'Kennedy,
>
>  Jim' are the same, and is not supported by this command.
>
> At line:1 char:51
>
>
>
>
>
>
>
>
>
>
>
>
>

~ Ninja Email Security with Cloudmark Spam Engine Gets Image Spam ~
~             http://www.sunbeltsoftware.com/Ninja                ~

Reply via email to