The net user command only sets the account to never expire and not the password. To set the password to never expire we need to use WMI and here’s an example command;
WMIC USERACCOUNT WHERE “Name=’username'” SET PasswordExpires=FALSE

Enjoy!

Advertisements