Solved

Delete all outlook contacts in a mailbox - powershell command? Exchange 2007

Posted on 2012-03-28
3
3,967 Views
Last Modified: 2012-03-29
I have an android user who's contacts got super-duplicated...he has multiple hundred copies of every contact, over 350,000 total. I am not able to manipulate the contacts at all in outlook, the client freezes and crashes when you try to do anything. I'm hoping somebody knows of a powershell command or some way to manipulate the mailbox on the server side, and delete all of his contacts?

I found reference to a powershell string:
search-mailbox -identity USERNAME -searchquery kind:contacts -deletecontent
but it errors out saying it doesn't recognize the cmdlet "search-mailbox" - might be part of exchange 2010 and not available in 2007?
0
Comment
Question by:ITHastings
3 Comments
 
LVL 10

Expert Comment

by:pclinuxguru
ID: 37779326
Well you can try this.

Login to the web access and delete it from there.

If outlook only crashes when you click on Contacts but still can view mail

Click Tool -> Address Book -> Dropdown and select address book

Wait till it load and select all and delete.
0
 
LVL 18

Accepted Solution

by:
suriyaehnop earned 500 total points
ID: 37780499
To delete contact from mailbox using Exchange Management Shell 2007.

Please follow this

http://technet.microsoft.com/en-us/library/bb266964(v=exchg.80).aspx
0
 

Author Closing Comment

by:ITHastings
ID: 37783249
In case anyone has the exact same problem and wants the specific command, I used this:

Export-Mailbox -Identity USERNAME -IncludeFolders '\Contacts' -DeleteContent
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
If you don't know how to downgrade, my instructions below should be helpful.
In this video we show how to create a Distribution Group in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >>…
To show how to create a transport rule in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Rules tab.:  To cr…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now