WMIC set "User cannot change password" error : Description = Generic failure

Rosen Liu 1 Reputation point
2022-04-23T08:31:24.697+00:00

wmic useraccount where name="administrator" set passwordchangeable=FALSE

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,601 questions
Windows 10 Setup
Windows 10 Setup
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,899 questions
Windows 10 Security
Windows 10 Security
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
2,752 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 39,351 Reputation points
    2022-04-27T08:04:56.597+00:00

    Hello

    Thank you for your question and reaching out.

    I can understand you are receiving error while setting up password using wmic , Please try below steps then run command again to see if it resolves the issue.

    Run -> compmgmt.msc

    In there you can go to: "local users and groups" -> "Users"

    There you have to right click the user then "properties".

    In there you can remove the user from the "Administrators" group. press apply.

    then go to general and click user cannot change password. Press apply.

    Go back to "member of" and add Administrators back to list.

    After this it should work. Hope this helped :)


    --If the reply is helpful, please Upvote and Accept as answer--

    0 comments No comments