Hi All,
What short PowerShell command can I use to find out password expiration date of a specific user?
Thank you,
redhook
Hi All,
What short PowerShell command can I use to find out password expiration date of a specific user?
Thank you,
redhook
Have you heard about a technology enabling people to search the internet for specific things?
You can try the below scipt:
Import-Module ActiveDirectory
Get-ADUser -SearchBase “OU=TestOU,DC=TestDomain,DC=Local” -filter {Enabled -eq $True -and PasswordNeverExpires -eq $False} -Properties “SamAccountName”,“msDS-UserPasswordExpiryTimeComputed” |
Select-Object -Property “SamAccountName”, @{Name=“Password Expiry Date”; Expression={[datetime]::FromFileTime($_.“msDS-UserPasswordExpiryTimeComputed”)}} |
Format-Table
You may also take help from the following links which assists you to email users a active directory password expiration notification and schedule reports, alerts with all password expiration related tasks.
http://password-expiration-notification.blogspot.in/
http://www.morgantechspace.com/2015/03/powershell-get-ad-users-password-expiry-date.html
thank you for your response, but, is there a way to revert back on this?