Hi,
Welcome to ask here!
Based on my understanding, there is not a direct setting to do this.
We may consider doing this by deploying a startup script under Computer configuration > Policies > Windows settings > Scripts (startup / shutdown).
Following information for your reference:
Computer configuration > Policies > Windows settings > Scripts (startup / shutdown)
https://techraptor.net/technology/guides/enable-data-execution-prevention-dep-via-group-policy-or-bcdeditexe
This response contains a third-party link. We provide this link for easy reference. Microsoft cannot guarantee the validity of any information and content in this link.
Best Regards,
Hi,
If there are any updates, welcome to share here!
Best Regards,