User accounts set to expire
Use the following PowerShell to find User's expiration status & dates. The Attribute: The LDAP attribute we are interested in here is " AccountExpires ". This field contains a time string formatted in NT Epoch time. (See "Accounts that will Expire" below to convert it.) You can use the following PowerShell to select it: Get-ADUser -Identity "JHeisler" -Properties ("AccountExpires") Accounts set to "Never" expire: If the " AccountExpires " attribute contains " 9223372036854775807 " or " 0 " that indicates that the user's account is set to never expire. Accounts that will expire: If an account is set to expire, (i.e. " AccountExpires " attribute does not contain " 9223372036854775807 " or " 0 ") We can convert it using w32tm.exe with the /ntte [AccountExpires] argument. See Below: L...