Mon. Oct 6th, 2025

This can be handled in multiple ways. However, I like the one liner using WMI:

WMIC USERACCOUNT WHERE Name='username' SET PasswordExpires=FALSE

Change username to the account you need to set and you are good to go.

 

By Sems

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.