flare-vm
flare-vm copied to clipboard
[README] Add password expiration
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.
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
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:
It would be a better solution to add this to the installer (maybe similar to the checks).
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
Powershell