Some times out of the blue. Mostly in haste to see if an account has been changed or locked.
I usually use a couple of things.
$User = Read-Host 'User'
Get-ADUser -Identity $User -Properties * |ft Name,PasswordLastSet,PasswordNeverExpires,PasswordExpired,PasswordNotRequired
Easy 2 lines of code in Powershell.
@echo off
title User password state check tool - Max
color 0A
:start
Set /p name=Hello! Please input a username:
cls
echo This is what i managed to find...
net user %name% /domain | FIND /I "Full Name"
net user %name% /domain | FIND /I "Password last set"
net user %name% /domain | FIND /I "Password expires"
net user %name% /domain | FIND /I "Account expires"
echo - Press ENTER to try another username -
pause >nul
cls
goto start
15 Lines in VB script.
Credit
You must log in to post a comment.