Password Expiry Program
The below batch script can be run by users to determine when their AD user account password expires.@ TITLE Password Expiry
@ net user /domain %USERNAME% | find "Full Name"
@ net user /domain %USERNAME% | find "User name"
@ net user /domain %USERNAME% | find "Password last set"
@ net user /domain %USERNAME% | find "Password expires"
@ net user /domain %USERNAME% | find "Account active"
@echo.
@echo If your password has expired and your account is inactive, type 'Ctrl + Alt + Delete' and click on the 'Change a password...' button to reset your password.
@echo.
@ pause
Back