Disabling Hardware‐enforced Stack Protection to run protected executables through USVFS - ModOrganizer2/modorganizer GitHub Wiki
Hardware-enforced Stack Protection is a security feature in Windows that may prevent executables from being ran through USVFS. It requires hardware that supports Intel Control-flow Enforcement Technology or AMD Shadow Stacks to work. Users with incompatible hardware will not experience any problems launching protected executables through Mod Organizer.
Compile the program using the /CETCOMPAT:NO compiler flag or add the <CETCompat>false</CETCompat> property to the project file of your .NET application (defaults to true since .NET 9).
- Open the Windows Security app.
- Navigate to App & browser control > Exploit protection settings > Program settings.
- Click the plus button labeled "Add program to customize".
- Click Choose exact file path and select the executable in the file picker.
- Scroll down to Hardware-enforced Stack Protection, check the Override system settings checkbox and ensure the toggle is set to Off.
- Click Apply.