Skip to main content

Disable Defender vs Supported AV

Overview

This script will disable the defender if the supported AVs are found and running.

Sample Run

Play Button > Run Automation > Script
SampleRun1

  • Search for disable defender and select Disable Defender vs Supported AV script.

SampleRun2

Sample Run3

  • If you want to run on demand, feel free to provide the script variable SupportedAVNames with the AV list to validate and stop Defender if the AV is found and running.

Sample Run4

  • If you want to just simulate the process of checking for AV and disabling Defender without making any changes, run with WhatIf checked

Sample run4

  • After clicking on run by choosing any above method, the script will ask to confirm run again. Click Run

Sample Run5

Dependencies

Parameters

NameExampleRequiredDefaultTypeDescription
SupportedAVNamesSentinelAgent,CylanceFalseString/TextThis accepts the AV names that need to be checked for running and active, and if found, then disables the defender.
WhatIf1 or 0FalseCheckboxIf this is checked, then the script will just simulate the process of checking for SentinelAgent and disabling Defender without making any changes.

Automation Setup/Import

Automation Configuration

Output

  • Activity Details
  • Log file

Changelog

2026-06-17

  • Initial version of the document