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--