Hello,
I'm currently trying to add a local account on Windows 11 via PowerShell in administrator mode in order to simplify user management. So I ran the following command to create the account: net user User /add. Then, after a bit of research, I discovered that it was possible to force the user to define a password on their first connection. So I ran the following command: net user User /logonpasswordchg:yes. The terminal tells me that the operation went well, but during the test, no request to change the password appears when the user logs in. I've tried several times without success.
I've also looked for a solution via the Control Panel, but I can't find an option to enable this requirement. Some articles mention a similar setting, but only on older versions such as Windows Server 2003.
Would you have an idea for a workaround or another method of forcing the user to set a password on first login on Windows 11?
Thanks in advance for your help!