flare-vm icon indicating copy to clipboard operation
flare-vm copied to clipboard

[README] Add password expiration

Open Ana06 opened this issue 10 months ago • 3 comments

A password expiration blocks the FLARE-VM installation as it asks to change the password after a restart. I had this issue today. Document how to set Password never expires in the user properties in lusrmgr.msc to avoid the issue.

Ana06 avatar Apr 22 '24 08:04 Ana06

Is this something that we could automate and do early during the installation process?

It seems to just require running WMIC USERACCOUNT WHERE Name='<username here>' SET PasswordExpires=FALSE, but I could be wrong.

emtuls avatar Apr 23 '24 02:04 emtuls

@emtuls

It seems to just require running WMIC USERACCOUNT WHERE Name='' SET PasswordExpires=FALSE, but I could be wrong.

have you tried this? It doesn't work for me: image

It would be a better solution to add this to the installer (maybe similar to the checks).

Ana06 avatar Apr 23 '24 13:04 Ana06

Whoops. That is how you would do it in Command Prompt. It would be a little different if doing it from Powershell: Set-LocalUser -Name "<username here>" -PasswordNeverExpires $true

Command Prompt image

Powershell image

emtuls avatar Apr 23 '24 14:04 emtuls