Skip to content

Error message from Microsoft Defender when applying presets using headless CLI #1062

@kcswe

Description

@kcswe

Product

Harden System Security App

Does Your System Meet The Requirements?

  • Yes, I acknowledge that I've read the requirements and my system meets them. 👍

Is your Windows Installation Genuine?

  • Yes, I acknowledge that the installation media (such as ISO file) of the Windows OS I used was downloaded from the official Microsoft website and I didn't tamper or modify it. 💯

Have you used any other 3rd party tools to modify your Windows installation?

  • If you used any other 3rd party tools to modify your Windows installation, they can be causing the problem you're experiencing.

Did You Read The Frequently Asked Questions?

  • Yes, I've referred to the FAQs and my issue is not covered/explained in there.

Please Explain The Bug

There is an error message from Microsoft Defender when applying presets using headless CLI.

Command: "HSS.exe --cli --preset=1 --op=Apply"
Environment: Virtualized Win 11 25H2(Version 10.0.26200.7840) in Parallels Desktop Version 26.2.2 (57373)

Error Details

Error message: "02/25/2026 08:03:28: Failed to process category 'Microsoft Defender': A type initializer threw an exception. To determine which type, inspect the InnerException's StackTrace property."

Metadata

Metadata

Assignees

Labels

Harden System Security 🔱Any item labeled with this is related to the Harden System Security application.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions