# Disable or Modify Tools

### Methods

```powershell
# Disable real-time monitoring for Windows Defender
Set-MpPreference -DisableRealtimeMonitoring $true

# Disable Windows firewall
netsh advfirewall set allprofiles state off

# Manually disable antivirus 
taskkill /F /IM avprocess.exe

# Stop an antivirus service
net stop "$service_name"

# Disable a Windows service
sc config "service name" start= disabled
```

#### Disable Antivirus via the GUI

Non-administrative users are sometimes able to disable or create an exception for the antivirus running on the host via the GUI. If the target has one of these then you can either right click the icon in the task bar and disable it or manually open the GUI and disable it in settings.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ttp.parzival.sh/pentesting/infrastructure/defense_evasion/disable_antivirus.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
