This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Password Last Set on Web Console

We have migrate to ARS 7 and do not want anymore to deploy the MMC to user/operators. They should only use the web console.

I've a request from operators: they want the equivalent of the "Additional account Info" tab to the web console.

I've customize the User Properties Form by adding a new Advanced Account info tab and adding different entry on it.

Now I'm stuck on how to add the Password Last Set property. Any help on how to do it would be greatly appreciated.

PS: I've found an old post about this on the forum but the link provided on the resolution is no longer available.

Regards

Parents
  • Terrance is spot on.

    Here's some code for your workflow script activity:

    # Grab the GUID of the user who's password was just changed - $Request is the built-in ARS transaction object

    $MyUser = $Request.GUID

    # Get the friendly version of the LastPwdSet time

    $FriendlyLastPwdSet = ($(get-qaduser -identity $MyUser).passwordlastset).tostring("F")

    ...will yield

    August 26, 2016 06:45:05 PM (or the local language equivalent) ***

    As Terrance suggested, you can take this value and stamp it to a virtual attribute of your own creation - edsvaPwdLastSetFriendly would be a good name. So...

    Set-QADUser -identity $MyUser -proxy -objectattributes @{edsvaPwdLastSetFriendly=$FriendlyLastPwdSet}

     

    *** The "F" in the tostring() method above comes from the table found here:

    msdn.microsoft.com/.../az4se3k1(v=vs.110).aspx

     

     

Reply
  • Terrance is spot on.

    Here's some code for your workflow script activity:

    # Grab the GUID of the user who's password was just changed - $Request is the built-in ARS transaction object

    $MyUser = $Request.GUID

    # Get the friendly version of the LastPwdSet time

    $FriendlyLastPwdSet = ($(get-qaduser -identity $MyUser).passwordlastset).tostring("F")

    ...will yield

    August 26, 2016 06:45:05 PM (or the local language equivalent) ***

    As Terrance suggested, you can take this value and stamp it to a virtual attribute of your own creation - edsvaPwdLastSetFriendly would be a good name. So...

    Set-QADUser -identity $MyUser -proxy -objectattributes @{edsvaPwdLastSetFriendly=$FriendlyLastPwdSet}

     

    *** The "F" in the tostring() method above comes from the table found here:

    msdn.microsoft.com/.../az4se3k1(v=vs.110).aspx

     

     

Children
No Data