How do I set the expiration date of an AD account RRS feed

  • General discussion

  •   ILM Knowledge Bit

     The account expiration date can be set 90 days after the current date using:

    csentry("accountExpires").Value = Date.Now.AddDays(90).ToFileTime

    or based on a value in the Metaverse:

    csentry("accountExpires").Value = DateTime.Parse(mventry(DateKey).Value).ToFileTime().ToString()

    Setting the accountExpires attribute to 0 or to 9223372036854775807 means no expiry.


      Go to the ILM Knowledge Bit Collection

    By: Paul Loonen
    Wednesday, June 9, 2010 8:12 PM