maddev-engenuity / AdversaryEmulation

MAD ATT&CK Defender: ATT&CK Adversary Emulation Repository
Apache License 2.0
106 stars 22 forks source link

Registry setup change #70

Open yee-jonathan opened 2 years ago

yee-jonathan commented 2 years ago

If the registry key AutoAdminLogon already exists, using New-ItemProperty results in an error and premature termination of the script.

Changing New-ItemProperty to Set-ItemProperty will create the key if it doesn't exist, or update the value of the key if it already exists.

Screenshot 2022-07-29 153348