Automate application of hardening settings - draft version