mandiant / flare-vm

A collection of software installations scripts for Windows systems that allows you to easily setup and maintain a reverse engineering environment on a VM.
Apache License 2.0
6.45k stars 906 forks source link

[README] Add password expiration #587

Closed Ana06 closed 4 months ago

Ana06 commented 5 months ago

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.

emtuls commented 5 months ago

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.

Ana06 commented 5 months ago

@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).

emtuls commented 5 months ago

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