Articles & News
Graphics & Displays
Tom's IT Pro
Login | Sign Up
The authority on tech
Commandline set User Password to never expire
Mar 20, 2012, 7:52 PM
Hi, I was wondering if anyone knew a command to set local user's account's password to never expire.
This can be easily done through GUI by using a check-box, but that is not easy to script (have to use autokey and stuff...).
"net user" seems to allow the account to never expire, but I don't see an option to have the password set to never expire.
Sep 22, 2012
commandline user password expire
Mar 21, 2012, 1:33 AM
Check here for related information.. hope you find something usefull.
Sep 21, 2012, 5:57 PM
Just go there paste the code in a vb script and fire the script
it worked great for me i was search for a way to tick that damn option for several users
Net user to add accounts awith password never expires select
Forgot user password
How to set password NEVER EXPIRES to an user account trough NET USER cmd
Windows xp asks for password when one was never created one
Can't find your answer ? Ask !
Get the answer
Sep 21, 2012, 6:10 PM
Why not just go into the local policy editor and set the "maximum password age" to zero. This will prevent all passwords from expiring.
Sep 22, 2012, 12:24 PM
net user youruername /expires:never
Ask a new question
"Your password will expire in _ days" but what password?
User account password
Password doesn't expire.
User accounts expire
User account password help please
User account password - lost
Forgot Password to My User Account on XP Home
User account in control panel not working
Password protec w/in a user account
Script for renaming and changing PWD on Local Admin Account
How to operate windows that requires password of deleted user account
Reactivating password protected user account
User account control
Recovering User Account Password
Conflicts between user account password protection and sch..
Subscribe to our newsletter
icon arrow stem circle
About Tom's Hardware
Licensing and Reprints
Other Purch sites
© 2018 Purch All Rights Reserved.