If running these manually, they must be run line by line in order to function properly. We recommend setting this up as a script on your RMM for easier enablement. If you are not familiar with troubleshooting PowerShell errors please enable defender through the GUI.īefore running the following commands, please note that this will not work if the machine doesn't have Windows Defender installed and if you run these while having another AV installed it could cause conflicts between the two. Please be aware that these commands provide no error checking, installation validation, etc. Take caution when running these commands to enable Defender as you may have another issue present. This is because Microsoft Defender is enabled by default in Windows 8.1+ (and Server 2016+) and will even re-enable itself if it's disabled and detects no 3rd party AV. Verify that the script has been run as an administrator. HKLMSOFTWAREPoliciesMicrosoftWindows Advanced Threat Protection. 10: Onboarding data couldnt be written to registry: Check the permissions on the registry, specifically. The Huntress Agent cannot enable Microsoft Defender if it is explicitly disabled. HKLMSOFTWAREPoliciesMicrosoftWindows Advanced Threat Protection.