obtener_fecha_de_expiracion_de_clave_de_usuario_de_ad

This is an old revision of the document!


Esto trae una lista de cada usuario xon su propiedad de expiración en formato humano

Get-ADUser -filter {Enabled -eq $True -and PasswordNeverExpires -eq $False} –Properties "DisplayName", "msDS-UserPasswordExpiryTimeComputed" |
Select-Object -Property "Displayname",@{Name="ExpiryDate";Expression={[datetime]::FromFileTime($_."msDS-UserPasswordExpiryTimeComputed")}}
obtener_fecha_de_expiracion_de_clave_de_usuario_de_ad.1681081018.txt.gz · Last modified: 2024/10/17 21:42 (external edit)