Disable password expiration in Windows 7 Home Premium
It looks like admin accounts in Windows 7 Home Premium have password expiration set on. However, Windows 7 in Home Premium edition does not have a GUI tool to remove it. There is, however, a command line tool which allows to do it over Windows Management Instrumentation – its name is wmic.
If you want to remove password expiration do the following:
- Click on Start button.
- Type wmic
- Right click listed program wmic and “Run as Administrator”
- Now paste this commmand:
UserAccount where PasswordExpires=TRUE set PasswordExpires=FALSE
- Confirm change for each account with password expiration.
This is not really a missing answer, however, there are plenty of solutions which do not work well, or contain typos – mostly because of different quotes used in the command. This script allows changing the expiration at once for all users that have it set – and it does not contain any quotes 😉
Anyway, this is so far the biggest failure I have encountered when using Windows 7 Home Premium edition: Force password expiration in home environment and do not provide a GUI how to disable it.
Terrific! Thank you! I am not a programmer (took one class in colleges decades ago) but was able to follow your directions and make the “fix”. I very much appreciate your assistance.
Thank You so much for this. You are right, what a massive failure on Msofts front to not allow you to manage your own pc.
Qick and easy solution,
1 log in as admin
start
wmic right click and run as admin this needs to be done to allow write privileges
“useraccount set passwordexpires=false”
answer either Y or N for each account
exit will close program
@Catherine
Yes, couple of characters can be saved, so I removed them from the command. I have also removed the step that was listing accounts with expiration, because they are shown during change anyway.
When I do this, I get “UserAccount is not recognized as an internal or external command. . . . ” etc.
Hi Lynn, this looks like you are not inside the WMIC when running the command. Please check that you type the command to the window which opens when running step 3.
[…] Brablc.com » Disable password expiration in Windows 7 Home Premium. […]
Thanks, nuggets like this are cool.
Dont normally use home premium so this was really helpfull
Thank you!
Thanks. Great tip. Worked perfectly. Why on earth Microsft would think it is a good idea to disable functionality of control userpasswords2 is beyond me.
Hi, I tried this but as soon as I pressed ‘run as administrator’ it came up with a window requiring the admin password. This is SO frustrating. I am not techy at all and this is my daughter’s laptop. I only set up an admin account so I could set parental controls. Any ideas of how to get around it now??
Hi Catherine,
But you have the admin password, don’t you? It would be better if you would perform this operation when logged in as admin. Or did the admin account already expire and you cannot login?
Ondrej
Thank you friend.
The admin account already expired and now I can’t login as admin. I read somewhere else about resetting the BIOS to a date when the password would have still been active so I could log in and do this. I have tried that and it is still not recognising the password. I just realised the laptop is running Windows 7 Professional. Does that change the approach?
At this moment, you should not be trying to change account expiration but to recover your admin password. There are many tools that would help you with this. Unfortunately I do not have any experience with them. Anyway with Windows 7 Professional, you do not need this article, because you could change the expiration from GUI.
[…] Disable password expiration in Windows 7 Home Premium Windows Command Line: wmic […]
Did the job – cheers – was not allowed to paste, had to type – is this a Command Line thing?
You should be able to paste, perhaps you did not get it into clipboard correctly?
Seemed to work – guess I’ll have the chance to tell in 42 days. Incidentally, I found the paste option that worked when I right-clicked the window header region and chose “edit”.
hi, It is 2 year later, but can you help? When I type WMIC to Start, it came a black window and is waiting a command.
wmic:rootcli>
What should I do ?
Did you try continuing with the step 4 which says you should paste a command there?
Thank you, this helped me.
Is there a way do add user account without password expiration?
Thank you so much!!! Stupid Win 7 removing ctrl userpasswords. Ugh. Thank you!!!!
I have done this and it retured the error message
ERROR:
Description = Generic Failure
This is just changing the password, Now I just want to know about never change password.