Author Posts

January 1, 2012 at 12:00 am

by mrtanz at 2012-09-02 21:51:35

Hi All

I have dabbling powershell and can do AD activites such as changing set attributes of users however now i need to create a script for Exchange 2010

The idea of the script is to change the deletedflags attribute to
I can do this via vbs by using objUser.PutEx ADS_PROPERTY_CLEAR, "deletedItemFlags", 0

But i havent been able to get it through powershell. From what i can see this attribute is not a common attribute and involves setting other attributes.

Appreciate any help

by poshoholic at 2012-09-04 05:44:38

You should probably review the section titled Modifying the Deleted Item Retention period for a mailbox using the Exchange shell on this blog post:

It describes the parameters you need to use with Set-Mailbox to change the deleted item retention period (which is what you're doing when you change deletedItemFlags in that VB script).