How to Get Active Directory User Expiration List
Method: 1
Net user Username
/Domain
Method:2
Get All User in PowerShell
Get-ADUser -filter
{Enabled -eq $True -and PasswordNeverExpires -eq
$False} –Properties
"Name",
"msDS-UserPasswordExpiryTimeComputed"
| Select-Object
-Property "Name",@{Name="ExpiryDate";
Expression={[datetime]::FromFileTime($_."msDS-UserPasswordExpiryTimeComputed")}}
Get
Singal User
Get-ADUser -Identity Pri8 -Properties msDS-UserPasswordExpiryTimeComputed
| select Name,@{Name="ExpiryDate";
Expression={[datetime]::FromFileTime($_.”msDS-UserPasswordExpiryTimeComputed”)}}
No comments:
Post a Comment