?
Solved

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

Posted on 2012-03-28
3
Medium Priority
?
4,557 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 2000 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

In this article I discuss my selections of the Top Four free Outlook OST File Viewers available. Open, view and read even damaged OST files by using these tools. They all provide a clear preview of all data such as emails, notes, tasks, calendars, e…
Know the reasons and solutions to move/import EDB to New Exchange Server. Also, find out how to recover an Exchange .edb file and to restore the file back.
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Suggested Courses

719 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