Skip to content

Commit

Permalink
Merge pull request #10224 from AaLl86/patch-1
Browse files Browse the repository at this point in the history
 Add a brief explanation of the VBS Mandatory mode
  • Loading branch information
Stacyrch140 authored Sep 19, 2024
2 parents c90237c + 60c822f commit 9f53153
Showing 1 changed file with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ To apply the new policy on a domain-joined computer, either restart or run `gpup

### Use registry keys to enable memory integrity

Set the following registry keys to enable memory integrity. These keys provide exactly the same set of configuration options provided by Group Policy.
Set the following registry keys to enable memory integrity. These keys provide similar set of configuration options provided by Group Policy

> [!IMPORTANT]
>
Expand Down Expand Up @@ -95,7 +95,7 @@ reg add "HKLM\SYSTEM\CurrentControlSet\Control\DeviceGuard" /v "EnableVirtualiza
reg add "HKLM\SYSTEM\CurrentControlSet\Control\DeviceGuard" /v "RequirePlatformSecurityFeatures" /t REG_DWORD /d 1 /f
```

**To enable VBS with Secure Boot and DMA (value 3)**
**To enable VBS with Secure Boot and DMA protection (value 3)**

```console
reg add "HKLM\SYSTEM\CurrentControlSet\Control\DeviceGuard" /v "RequirePlatformSecurityFeatures" /t REG_DWORD /d 3 /f
Expand Down Expand Up @@ -131,6 +131,17 @@ reg add "HKLM\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorE
reg add "HKLM\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity" /v "Locked" /t REG_DWORD /d 1 /f
```

**To enable VBS (and memory integrity) in mandatory mode**

```console
reg add "HKLM\SYSTEM\CurrentControlSet\Control\DeviceGuard" /v "Mandatory" /t REG_DWORD /d 1 /f
```

The **Mandatory** setting prevents the OS loader from continuing to boot in case the Hypervisor, Secure Kernel or one of their dependent modules fails to load.

> [!IMPORTANT]
> Special care should be used before enabling this mode, since, in case of any failure of the virtualization modules, the system will refuse to boot.
**To gray out the memory integrity UI and display the message "This setting is managed by your administrator"**
```console
reg delete HKLM\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity /v "WasEnabledBy" /f
Expand Down

0 comments on commit 9f53153

Please sign in to comment.