Welcome Forums General PowerShell Q&A Deleteditemflags

This topic contains 0 replies, has 1 voice, and was last updated by  Forums Archives 6 years, 10 months ago.

  • Author
  • #6467

    Points: 0
    Rank: Member

    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).

The topic ‘Deleteditemflags’ is closed to new replies.