MSDS-userpasswordexpirytimecomputed??

Welcome Forums General PowerShell Q&A MSDS-userpasswordexpirytimecomputed??

Viewing 1 reply thread
  • Author
    Posts
    • #238373
      Participant
      Topics: 2
      Replies: 1
      Points: 6
      Rank: Member

      hey guys, is there anyway to increase userpasswordexpirytimecomputed value?

      I was able to get Expiry date for all AD users, now I wanna increase them by 30 days, but I can’t seem to figure out at all

    • #238403
      Participant
      Topics: 6
      Replies: 15
      Points: 141
      Rank: Participant

      Well the password expiration is based on the policies set by your GPO, I don’t think it’s possible to arbitrarily add 30 days. You can at best “reset” the timer for when the password was last set, which would extend the password expiration for the interval defined by your domain.

      Although this isn’t really a Powershell related issue. You can use Set-ADUser to adjust the pwdlastset attribute. There are instructions for this elsewhere, but you should set it to 0 and then -1 .

      You may be able to use a fine-grained password policy to target those accounts you need to be extended for 30 days. I would not be able to instruct you on the specifics for how to do this though.

      • This reply was modified 2 months, 3 weeks ago by Phatmandrake.
Viewing 1 reply thread
  • You must be logged in to reply to this topic.