Solved

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

Posted on 2012-03-28
3
4,458 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 19

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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Check out this step-by-step guide for using the newly updated Experts Exchange mobile app—released on May 30.
There are times when we need to generate a report on the inbox rules, where users have set up forwarding externally in their mailbox. In this article, I will be sharing a script I wrote to generate the report in CSV format.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses

626 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