Hi,
To add custom field to display account password expiry below options tried but non works, kindly advice any feasible solution or powershell query to include in the BGinfo to run and show the pw expiry date.
Option1.
WMI Class....Win32_userAccount
Class_Property.....PasswordExpires
WMI_Query : Select_PasswordCheangable FROM Win32_UserAccount
Result : shows True / False but no date
Option2:
Powershell command to run
Get-ADUser -identity <username> -Filter -Properties | Select Name,AccountExpirationDate
Result : multiple error
Thank you