PaulWTech Posted July 29, 2020 Posted July 29, 2020 I have a Windows 10 Pro (local) machine that is not responding to: wmic UserAccount set PasswordExpires=True I've been digging a big hole looking for a comparable powershell command. Anyone know? Also, how to check if the user cannot change password is set. It does not list using net accounts
PaulWTech Posted July 29, 2020 Author Posted July 29, 2020 Does anyone know if this will work: Set-LocalUser -Name username -ExpirePassword I extracted it from this link
eDecisions Posted July 30, 2020 Posted July 30, 2020 Personally I'd change it to a dos batch file rather than powershell, user accont settings are easlry set there.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now