I am using Get-PWUserByLastLogin to get users last login details. But unfortunately it is not matching with the audit trail records in user properties section in PW Admin.
Please see the example below:
Script is returning "Thursday, November 3, 2022 10:04:51 PM" as the last login date.
Audit Trail from PW Admin shows last login as 1st February 2023.
Why is this login information is different?
This ought to work:
as it is an admin level switch to pull the sensitive data. Also slower.
The verbose messages suggest that you are using a version of PSPS_DAB earlier than when Get-PWUserByLastLogin was last updated. Please use
to verify that the version of PWPS_DAB is 220.127.116.11
Hope this helps,
Mark Weisman | Bentley Systems
Answer Verified By: Ajomon George
I tried this. still getting the old date
Thank you for your answer. This fixed the issue.
Answer Verified By: MWBSI