Skip to main content
added 259 characters in body
Source Link
user4948798
  • 111
  • 1
  • 4
  • 10

I was interested in particular user's domain account password expiry date, through this Link able to get details.

Power shell Command:-

Get-ADUser –Server domain-nameabc.com user-idusername -properties PasswordLastSet, PasswordNeverExpires, PasswordExpired |ft Name, PasswordLastSet, PasswordNeverExpires,PasswordExpired

Then need to calculate expiry date with below command:-

Get-ADUser 'username' -server 'abc.com' -Properties msds-UserPasswordExpiryTimeComputed | Select Name, @{n='PasswordExpires'; e={[datetime]::FromFileTime($_.'msds-UserPasswordExpiryTimeComputed')}}

I was interested in particular user's domain account password expiry date, through this Link able to get details.

Power shell Command:-

Get-ADUser –Server domain-name.com user-id -properties PasswordLastSet, PasswordNeverExpires, PasswordExpired |ft Name, PasswordLastSet, PasswordNeverExpires,PasswordExpired

I was interested in particular user's domain account password expiry date, through this Link able to get details.

Power shell Command:-

Get-ADUser –Server abc.com username -properties PasswordLastSet, PasswordNeverExpires, PasswordExpired |ft Name, PasswordLastSet, PasswordNeverExpires,PasswordExpired

Then need to calculate expiry date with below command:-

Get-ADUser 'username' -server 'abc.com' -Properties msds-UserPasswordExpiryTimeComputed | Select Name, @{n='PasswordExpires'; e={[datetime]::FromFileTime($_.'msds-UserPasswordExpiryTimeComputed')}}
Source Link
user4948798
  • 111
  • 1
  • 4
  • 10

I was interested in particular user's domain account password expiry date, through this Link able to get details.

Power shell Command:-

Get-ADUser –Server domain-name.com user-id -properties PasswordLastSet, PasswordNeverExpires, PasswordExpired |ft Name, PasswordLastSet, PasswordNeverExpires,PasswordExpired