Solved

Delete Folder using Powershell from User Mailbox Exchange 2010

Posted on 2014-03-13
3
7,931 Views
Last Modified: 2014-03-17
My archive software creates a folder within each of our user's mailbox.  I want to be able to delete this folder that has the specific name "MailboxArchive" at the Exchange level.  Is there a way to accomplish this using PowerShell?  Something like, if mailbox contains folder called MailboxArchive, then delete.

Thanks.
0
Comment
Question by:fireguy1125
3 Comments
 
LVL 4

Accepted Solution

by:
Jason Ryberg earned 250 total points
ID: 39926429
Based on my searches, there's no built-in cmdlet in Exchange 2010 for deleting FOLDERS from user's mailboxes.  Deleting emails? Sure.  But not folders.

In order to delete folders, you'll have to import the Exchange web services API and call it from PowerShell, as detailed in this technet forum.
0
 
LVL 4

Assisted Solution

by:michaelalphi
michaelalphi earned 250 total points
ID: 39928524
Not sure and have not tested ever but you can check this script available at here: Cleaning out the empty folder with EWS
0
 
LVL 1

Author Closing Comment

by:fireguy1125
ID: 39935566
Thanks
0

Featured Post

Do email signature updates give you a headache?

Do you feel like all of your time is spent managing email signatures? Too busy to visit every user’s desk to make updates? 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

We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
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…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

747 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

13 Experts available now in Live!

Get 1:1 Help Now