> For the complete documentation index, see [llms.txt](https://dlc-2.gitbook.io/dls-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dlc-2.gitbook.io/dls-docs/otklyuchenie-vbs-device-guard.md).

# 🛡️ Отключение VBS Device Guard

{% tabs %}
{% tab title="Русский" %}

> **Перед началом убедитесь, что внимательно прочитали инструкцию до конца.**

{% stepper %}
{% step %}

## 📋 Что необходимо сделать перед выполнением

Перед запуском команд убедитесь, что выполнены следующие условия:

* ✅ **Secure Boot** отключен в BIOS/UEFI.
* ✅ На вашей учетной записи Windows **отсутствует пароль**. После включения компьютера должен происходить **автоматический вход в систему** без запроса пароля.
* ✅ Скачайте файл **`DG_Readiness_Tool.ps1`** и поместите его **на Рабочий стол**.

{% hint style="warning" %}
**Важно!**

В одной из команд необходимо заменить **`Admin`** на имя вашей учетной записи Windows.

Пример:

Если путь к рабочему столу выглядит так:

`C:\Users\Alex\Desktop`

то команда должна выглядеть следующим образом:

```powershell
PowerShell.exe -ExecutionPolicy Bypass -File "C:\Users\Alex\Desktop\DG_Readiness_Tool.ps1" -Disable
```

{% endhint %}

## 📥 Скачать необходимые файлы

Ниже прикреплен файл:

[📄 `DG_Readiness_Tool.ps1`](https://mega.nz/file/G3IBkLCC#bljANzxy6pMGiOPmqBHhnYlEwcxXda57Or0s24Hx0X4)

Скачайте его и поместите на **Рабочий стол** перед выполнением инструкции.
{% endstep %}

{% step %}

## 🚀 Выполнение

Откройте **PowerShell** **от имени администратора**.

Скопируйте **весь блок команд ниже**, вставьте его в окно PowerShell и нажмите **Enter**.

```powershell
reg add "HKLM\SYSTEM\CurrentControlSet\Control\DeviceGuard" /v "EnableVirtualizationBasedSecurity" /t REG_DWORD /d 0 /f
reg add "HKLM\SYSTEM\CurrentControlSet\Control\DeviceGuard" /v "RequirePlatformSecurityFeatures" /t REG_DWORD /d 0 /f
reg add "HKLM\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity" /v "Enabled" /t REG_DWORD /d 0 /f
PowerShell.exe -ExecutionPolicy Bypass -File "C:\Users\Admin\Desktop\DG_Readiness_Tool.ps1" -Disable
mountvol X: /S
Get-ChildItem -Path "X:\EFI\Microsoft\Boot\CIPolicies\Active" -Filter *.cip -ErrorAction SilentlyContinue | ForEach-Object { Remove-Item -LiteralPath $_.FullName -Force }
mountvol X: /D
```

{% endstep %}

{% step %}

## 🔄 Перезагрузка

После успешного выполнения всех команд **перезагрузите компьютер**.

Если все было выполнено правильно, **при первой загрузке** появится экран с выбором действия.

Вы увидите два варианта:

* **F3** — **Disable protection** (отключить защиту).
* **Esc** — пропустить действие.

{% hint style="success" %}
✅ Для завершения процедуры **обязательно нажмите `F3`**.
{% endhint %}

После этого компьютер продолжит загрузку Windows.
{% endstep %}

{% step %}

## ✅ Готово

Если все шаги были выполнены правильно, изменения вступят в силу после загрузки Windows.
{% endstep %}
{% endstepper %}
{% endtab %}

{% tab title="English" %}

> **Before you begin, make sure you have carefully read the entire guide.**

{% stepper %}
{% step %}

## 📋 What You Need to Do Before Starting

Before running the commands, make sure the following requirements are met:

* ✅ **Secure Boot** is disabled in BIOS/UEFI.
* ✅ Your Windows account has **no password**. After turning on the computer, Windows should log in **automatically** without asking for a password.
* ✅ Download the **`DG_Readiness_Tool.ps1`** file and place it on your **Desktop**.

{% hint style="warning" %}
**Important!**

In one of the commands, you must replace **`Admin`** with the name of your Windows user account.

Example:

If your Desktop path looks like this:

`C:\Users\Alex\Desktop`

then the command should look like this:

```powershell
PowerShell.exe -ExecutionPolicy Bypass -File "C:\Users\Alex\Desktop\DG_Readiness_Tool.ps1" -Disable
```

{% endhint %}

## 📥 Download the Required File

The following file is attached below:

[📄 `DG_Readiness_Tool.ps1`](https://mega.nz/file/G3IBkLCC#bljANzxy6pMGiOPmqBHhnYlEwcxXda57Or0s24Hx0X4)

Download it and place it on your **Desktop** before following the instructions.
{% endstep %}

{% step %}

## 🚀 Running the Commands

Open **PowerShell as Administrator**.

Copy the **entire command block below**, paste it into the PowerShell window, and press **Enter**.

```powershell
reg add "HKLM\SYSTEM\CurrentControlSet\Control\DeviceGuard" /v "EnableVirtualizationBasedSecurity" /t REG_DWORD /d 0 /f
reg add "HKLM\SYSTEM\CurrentControlSet\Control\DeviceGuard" /v "RequirePlatformSecurityFeatures" /t REG_DWORD /d 0 /f
reg add "HKLM\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity" /v "Enabled" /t REG_DWORD /d 0 /f
PowerShell.exe -ExecutionPolicy Bypass -File "C:\Users\Admin\Desktop\DG_Readiness_Tool.ps1" -Disable
mountvol X: /S
Get-ChildItem -Path "X:\EFI\Microsoft\Boot\CIPolicies\Active" -Filter *.cip -ErrorAction SilentlyContinue | ForEach-Object { Remove-Item -LiteralPath $_.FullName -Force }
mountvol X: /D
```

{% endstep %}

{% step %}

## 🔄 Restarting the Computer

After all commands have been completed successfully, **restart your computer**.

If everything was done correctly, a confirmation screen will appear during the **first startup**.

You will see two options:

* **F3** — **Disable protection**
* **Esc** — Skip the action

{% hint style="success" %}
✅ To complete the procedure, you must press **`F3`**.
{% endhint %}

After that, the computer will continue booting into Windows.
{% endstep %}

{% step %}

## ✅ Done

If all steps were completed correctly, the changes will take effect after Windows finishes loading.
{% endstep %}
{% endstepper %}
{% endtab %}
{% endtabs %}
