troubleshooting Question

turn off password expiry on newly created user accounts

Avatar of 247computerdoctor
247computerdoctorFlag for United Kingdom of Great Britain and Northern Ireland asked on
Windows OSPCWindows 10
13 Comments2 Solutions27 ViewsLast Modified:
Hi I hope you are well.

I need to be able to disable password expiry in windows 10 for newly created users (not on a domain, just local pc stuff)

I already run the following after I have finished the initial setup

wmic UserAccount set PasswordExpires=False

which turns off expiry for all existing accounts, but if someone subsequently makes a new account, it has the password expiry set on it.

I would like some reg key to stop that from happening. I guess I could set the script to run on creation of new user, but I'd rather there was some kind of machine wide "dont enforce password expiry for any user"
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 13 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 13 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros