Image hardening with AaronLocker and Nerdio

In September 2025, I had the opportunity to attend AVD Techfest. That’s where I first heard about AaronLocker. And yes, it’s actually been around for quite a while.

For many years, I have worked in the EUC (End User Computing) field and was already familiar with Software Restrictions and later AppLocker. I have used both. Increasingly, we’re seeing situations where GPOs are no longer used for configuring and hardening session hosts. As a result, using AppLocker has become less practical.

In the session “Securing Your Session Hosts: Easy to implement security tips for Citrix, AVD, Windows365 and Omnissa” by my MVP colleagues Patrick van den Born and Stefan Dingemanse, they presented the use of AaronLocker for hardening images. It was immediately clear to me that I wanted to implement this for Nerdio Manager for Enterprise.

Although Windows Defender Application Control (WDAC) is now available – a solution that is continuously being expanded and improved – I was convinced by the simplicity of AaronLocker. Especially for customers who have not yet implemented WDAC, this can be an alternative to increase security on session hosts. So, I created a solution for Nerdio that can be easily integrated into the image creation process. There are plenty of blogs and articles on the internet that introduce AaronLocker itself, so I will focus on the implementation in Nerdio.

Implementation

The easiest way to provide AaronLocker is via Shell Apps. With Shell Apps, you can create a deployment using three scripts and additional data in a ZIP file.

A Shell App contains a Detect Script, which checks whether the application has already been installed, and at the end of the installation, verifies whether the installation was successful. The Install Script performs the actual installation. The Uninstall Script is practically irrelevant in our case, since we only install/execute AaronLocker during the image creation process.

Since AaronLocker is downloaded directly from the source, we need to be able to make adjustments. For this, there are files in the CustomizationInputs folder, which can be adapted to your needs. We copy these files into the ZIP file, so we can make adjustments as needed and update the ZIP file accordingly.

General

Detect Script

Install Script

Uninstall Script

Versions with zip file

Conclusion

Even though AppLocker is no longer state-of-the-art, there are still security updates available at the moment. And to better protect an image and thus session hosts, AppLocker can be an alternative. In this case, AaronLocker can significantly simplify the process of creating and applying rules.

I hope this article helps you implement AaronLocker in your environment.