Solved

Delete Folder using Powershell from User Mailbox Exchange 2010

Posted on 2014-03-13
3
8,502 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

803 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