Page MenuHomePhorge

Windows Passwords
Updated 723 Days AgoPublic

Expiration (and the disabling thereof

Per-user

Commandline:

# check if set to expire
wmic UserAccount where Name='username' get PasswordExpires
# set to not expire
wmic UserAccount where Name='username' set PasswordExpires=False

GUI: Pretty self-explanatory tbh

System-wide

gpedit.mscComputer ConfigurationWindows SettingsSecurity SettingsAccount SettingsPassword Policy (and you can probably figure it out from there ;))

Last Author
keithzg
Last Edited
Dec 29 2022, 9:23 AM