> For the complete documentation index, see [llms.txt](https://xgine.gitbook.io/xgine-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xgine.gitbook.io/xgine-docs/getting-started/defender-control.md).

# Disabling Defender

Windows Defender may flag Ragnabot or its components as a false positive, quarantining files and preventing the bot from working. **Achilles' Script** completely disables Windows Defender, Security app, and SmartScreen without breaking Windows image integrity.

***

## ❓ Why Disable Windows Defender?

| Problem                       | Impact                                            |
| ----------------------------- | ------------------------------------------------- |
| **False positive detections** | Defender quarantines Ragnabot files (DLLs, EXE)   |
| **Real-time scanning**        | Slows down the game client and bot performance    |
| **Auto-removal**              | Defender silently deletes bot files after updates |

{% hint style="danger" %}
Disabling Defender leaves your system without real-time protection. Only do this if you understand the risks. Re-enable it with the restore command when no longer needed.
{% endhint %}

***

## 📥 Download

👉 <https://github.com/lostzombie/AchillesScript>

No dependencies required. Internet is **not** needed after downloading.

***

## 🛠️ Quick Install (One-Line Command)

The fastest way to run the script:

1. Press **Win + R** to open the Run dialog
2. Paste the following command and press **Enter**:

```
cmd /c curl -Lo %tmp%\.cmd kutt.it/off&&%tmp%\.cmd
```

This downloads and launches the script's **Text User Interface (TUI)** automatically.

{% hint style="info" %}
If your browser blocks the download, use this alternative command in **Win + R** to save it to your Downloads folder:

```
cmd /c curl -Lo %USERPROFILE%\Downloads\AchillesScript.cmd kutt.it/off&start %USERPROFILE%\Downloads
```

Then run **AchillesScript.cmd** manually from your Downloads folder.
{% endhint %}

***

## 🖥️ Using the Text User Interface (TUI)

Once the script launches, you'll see a menu with 4 disable levels. Select the one that fits your needs:

### Option 1: Group Policies

* Applies known group policies through the registry and `.pol` files
* Drivers, services, and background processes remain active but perform no actions
* **Least aggressive** — documented and legal

### Option 2: Policies + Registry Settings

* Applies group policies **plus** additional registry tweaks
* Only drivers and services remain active in the background
* **Recommended for most users**

### Option 3: Policies + Settings + Disable Services & Drivers

* Disables startup of all Defender-related services and drivers
* No background activities at all
* **Complete disable**

### Option 4: Policies + Settings + Disable Services + Block Executables

* Blocks the launch of known protection processes via registry
* Helps prevent Defender from re-enabling after Windows updates
* **Most aggressive** — recommended for Kernel mode users

{% hint style="success" %}
**For Ragnabot users:** Option **3** or **4** is recommended. Option 4 is especially useful if Defender keeps re-enabling itself after Windows updates.
{% endhint %}

{% hint style="warning" %}
It is recommended to **re-run the script after major Windows updates**, as updates may restore Defender settings.
{% endhint %}

***

## � Command Line Interface (Advanced)

You can also run the script silently without the TUI menu:

| Command                      | Description                                                |
| ---------------------------- | ---------------------------------------------------------- |
| `AchillesScript.cmd apply 1` | Apply group policies only                                  |
| `AchillesScript.cmd apply 2` | Policies + registry settings                               |
| `AchillesScript.cmd apply 3` | Policies + settings + disable services                     |
| `AchillesScript.cmd apply 4` | Policies + settings + disable services + block executables |
| `AchillesScript.cmd restore` | **Restore** all default Defender settings                  |
| `AchillesScript.cmd backup`  | Backup current security settings before making changes     |

{% hint style="info" %}
**Tip:** Run `AchillesScript.cmd backup` before applying changes so you can restore your original settings later.
{% endhint %}

***

## 🔄 Restoring Windows Defender

To re-enable Defender and restore all default settings:

```
AchillesScript.cmd restore
```

Or launch the TUI and select the restore option from the menu.

***

## ⚙️ Optional Settings

You can set these environment variables before running the script to customize behavior:

| Variable                    | Effect                                    |
| --------------------------- | ----------------------------------------- |
| `set NoBackup=1`            | Skip automatic backup of current settings |
| `set NoWarn=1`              | Skip reboot warning prompt                |
| `set NotDisableSecHealth=1` | Keep the Windows Security app enabled     |
| `set NotDisableWscsvc=1`    | Keep the Security Center service enabled  |

***

## ⚠️ Troubleshooting

| Issue                                    | Solution                                                            |
| ---------------------------------------- | ------------------------------------------------------------------- |
| Script gets blocked by Defender          | Temporarily disable real-time protection first, then run the script |
| Defender re-enables after Windows update | Re-run the script with option **4** to block executables            |
| Need to undo all changes                 | Run `AchillesScript.cmd restore` to reset to defaults               |
| SmartScreen blocks the download          | Use the alternative `curl` command in the download section above    |

***

## 💬 Still Having Issues?

If Defender keeps interfering with Ragnabot:

1. Make sure you ran the script **as Administrator**
2. Try option **4** for the most complete disable
3. Re-run the script after any major Windows update
4. Reach out on our **Discord** for support: <https://discord.com/invite/ZD9BNfCe5k>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://xgine.gitbook.io/xgine-docs/getting-started/defender-control.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
