Deleteditemflags This topic contains 0 replies, has 1 voice, and was last updated by Forums Archives 5 years, 7 months ago. Author Posts January 1, 2012 at 12:00 am #6467 Forums ArchivesMember 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: http://exchangepedia.com/blog/2008/09/configuring-deleted-item-retention.html 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). Author Posts You must be logged in to reply to this topic.