Force change password upon next logon

15,527

Solution 1

Here's what I found worked for me on Windows 10 Home.

wmic UserAccount where name='John Doe' set Passwordexpires=true

Followed by

net user "John Doe" /logonpasswordchg:yes

Solution 2

This is not possible on a Home Premium version of windows, and needs a Business or Pro version or higher, as it requires local group policies to exist.

If you upgrade windows 7 to Business Premium, then the following part of the answer can be used:

You can do this from Computer Management.

Go to the control panel, Administrative tools, then Computer management.

In the left menu, find Local Users and Groups.

Open it, and go to Users.

You will find a list of all users on your computer.

Double click the user you want to edit.

You will find a box that says [ ] User must change password at next logon. Check the box and hit ok.

This option will be grayed out for domain users because domain users are controlled through Active Directory. I know this is not applicable for you, but I'm listing this in case someone else finds this that has a pc that is joined to a domain.

This feature exists in every NT version of windows, going back to Windows NT 4. It also is included in Windows 10.

Share:
15,527

Related videos on Youtube

BigBelly
Author by

BigBelly

Updated on September 18, 2022

Comments

  • BigBelly
    BigBelly almost 2 years

    How can I make sure the currently logged in Administrator account will be forced to change its password, upon the next logon, and only on this next logon.

    This is a standalone Windows 7 (Home Premium) machine, with only a single user ('me'), no domain controller, no network policies, etc.

  • BigBelly
    BigBelly about 6 years
    Is there maybe any method of doing this directly with regedit or something like that?
  • LPChip
    LPChip about 6 years
    Not to my knowledge.
  • LPChip
    LPChip about 6 years
    If it is your goal to install windows to a pc, then place it at a customer site and have them come up with a password once, you could consider creating a slipstreamed install and abort the install once the "create user" screen comes up, and let them execute that stage. Its an out-of-box experience.
  • BigBelly
    BigBelly about 6 years
    I'm giving away an older laptop for a charity fund raiser. I've restored it to factory specs, applied a ton of windows updates, remove bloatware, etc. But I would like the user to force the new owner to change his/her password. So it's a one time afair really.
  • LPChip
    LPChip about 6 years
    I would remove the password then and make setting a password something the new owner must do. Not make any hastle of this.
  • LPChip
    LPChip about 6 years
    Will this work on a Windows Home Premium too? Given that this is a policy setting you are changing, and policies are absent in the Home Premium version, I doubt this will work.
  • I say Reinstate Monica
    I say Reinstate Monica about 6 years
    I don't see why not. Keep in mind Home Premium and Pro are the same under the hood, but the former just has certain features "turned off." In my experience, policies are not among those disabled features. As long as you can set the policy, the OS will enforce it.
  • LPChip
    LPChip about 6 years
    I have other experiences of forcing a policy on but the OS simply ignoring it.
  • I say Reinstate Monica
    I say Reinstate Monica about 6 years
    Hopefully someone can try it and let us know.