Solved

How to delete 25000 unread emails from mailbox

Posted on 2016-10-19
7
58 Views
Last Modified: 2016-10-26
Hi

We use exchange 2007 and outlook 2010. One of the users had left the organisation and have joined the organisation again now.
Now he has 25,000 unread mail in his mail box and he want all the emails to be deleted form his mailbox and do a fresh start. Please let me know is there is a safe and easy way of doing this.

Thanks and tutorials would be great.
0
Comment
Question by:lianne143
7 Comments
 
LVL 17

Assisted Solution

by:Gaurav Singh
Gaurav Singh earned 125 total points
Comment Utility
Try with below Command from Exchange Shell.

Get-Mailbox -Identity Username | Export-Mailbox -DeleteContent
0
 
LVL 24

Assisted Solution

by:-MAS
-MAS earned 125 total points
Comment Utility
0
 
LVL 6

Expert Comment

by:Niten Kumar
Comment Utility
Run the command "New-ManagementRoleAssignment -Role "Mailbox Import Export" -User Administrator" to make the export command available do the administrator account. After running the command I needed to close the power-shell, then reopen.

First make a backup copy of the mailbox by exporting it to a pst file just in case the user needs to access/check something later on.  

New-MailboxExportRequest -Mailbox james.bond -FilePath \\SRV01\pst\james.bond.pst

Open in new window


Search-Mailbox -Identity "<MailboxOrMailUserIdParameter>" -DeleteContent -force

Open in new window


The MailboxOrMailUserIdParameter may be provided as an alias, canonical DN, display name, distinguished name and more.
0
Promote certifications in your email signature

Has your company recently won an award or achieved a certification? They'll no doubt want to show it off. Email signature images used to promote certifications & awards can instantly establish credibility with a recipient and provide you with numerous benefits.

 
LVL 24

Assisted Solution

by:-MAS
-MAS earned 125 total points
Comment Utility
@Nitin
Thanks for your comment.
Please do not post comment which is not helpful.
0
 

Author Comment

by:lianne143
Comment Utility
Hi I tried the following command  and iam getting the error. Please see the attached   and please let em know if i am making a mistake.

Get-Mailbox -Identity Username | Export-Mailbox -DeleteContent
Jsmith.txt
0
 
LVL 6

Expert Comment

by:Niten Kumar
Comment Utility
@MAS
My humble apologies for the error.

You need to run the export-mailbox from a machine that has 32-bit MAPI bits on it. Install the Exchange Management tools on a workstation that has Outlook on it and try running the export-mailbox from there.
1
 
LVL 13

Accepted Solution

by:
Alexei Kuznetsov earned 250 total points
Comment Utility
You can easily get rid of this problem even without PowerShell. In his Outlook (configured in Exchange Online mode, not cached) just right click the "Unread Mail" search folder (without selecting it with left click), hold SHIFT button and select the "Delete All" context menu item. That's all! Fast and easy. Now you can switch the account to cached mode.
0

Featured Post

Do email signature updates give you a headache?

Do you feel like you are constantly making changes to email signatures? Are the images not formatting how you want them to? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today.

Join & Write a Comment

Sometimes Outlook might have problems sending a message. There may be various causes- corrupted PST, AV scanner etc. The message, instead of going to the Sent Items folder, sits in the Outbox indefinitely. To remove it you can use a free tool cal…
Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
In this video we show how to create a Shared Mailbox 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 >> Sha…
This video discusses moving either the default database or any database to a new volume.

728 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

9 Experts available now in Live!

Get 1:1 Help Now