Open in the explorer

Turn On Virtualization Based Security

Activer la sécurité basée sur la virtualisation

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System › Device Guard FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système › Device Guard
Supported on
At least Windows Server 2016, Windows 10 FR: Au moins Windows Server 2016, Windows 10
ADMX file
DeviceGuard.admx
Internal name
DeviceGuard/VirtualizationBasedSecurity

Explanation

Specifies whether Virtualization Based Security is enabled.

Virtualization Based Security uses the Windows Hypervisor to provide support for security services. Virtualization Based Security requires Secure Boot, and can optionally be enabled with the use of DMA Protections. DMA protections require hardware support and will only be enabled on correctly configured devices.

Virtualization Based Protection of Code Integrity

This setting enables virtualization based protection of Kernel Mode Code Integrity. When this is enabled, kernel mode memory protections are enforced and the Code Integrity validation path is protected by the Virtualization Based Security feature.

The "Disabled" option turns off Virtualization Based Protection of Code Integrity remotely if it was previously turned on with the "Enabled without lock" option.

The "Enabled with UEFI lock" option ensures that Virtualization Based Protection of Code Integrity cannot be disabled remotely. In order to disable the feature, you must set the Group Policy to "Disabled" as well as remove the security functionality from each computer, with a physically present user, in order to clear configuration persisted in UEFI.

The "Enabled without lock" option allows Virtualization Based Protection of Code Integrity to be disabled remotely by using Group Policy.

The "Not Configured" option leaves the policy setting undefined. Group Policy does not write the policy setting to the registry, and so it has no impact on computers or users. If there is a current setting in the registry it will not be modified.

The "Require UEFI Memory Attributes Table" option will only enable Virtualization Based Protection of Code Integrity on devices with UEFI firmware support for the Memory Attributes Table. Devices without the UEFI Memory Attributes Table may have firmware that is incompatible with Virtualization Based Protection of Code Integrity which in some cases can lead to crashes or data loss or incompatibility with certain plug-in cards. If not setting this option the targeted devices should be tested to ensure compatibility.

Warning: All drivers on the system must be compatible with this feature or the system may crash. Ensure that this policy setting is only deployed to computers which are known to be compatible.

Credential Guard

This setting lets users turn on Credential Guard with virtualization-based security to help protect credentials.

For Windows 11 21H2 and earlier, the "Disabled" option turns off Credential Guard remotely if it was previously turned on with the "Enabled without lock" option. For later versions, the "Disabled" option turns off Credential Guard remotely if it was previously turned on with the "Enabled without lock" option or was "Not Configured".

The "Enabled with UEFI lock" option ensures that Credential Guard cannot be disabled remotely. In order to disable the feature, you must set the Group Policy to "Disabled" as well as remove the security functionality from each computer, with a physically present user, in order to clear configuration persisted in UEFI.

The "Enabled without lock" option allows Credential Guard to be disabled remotely by using Group Policy. The devices that use this setting must be running at least Windows 10 (Version 1511).

For Windows 11 21H2 and earlier, the "Not Configured" option leaves the policy setting undefined. Group Policy does not write the policy setting to the registry, and so it has no impact on computers or users. If there is a current setting in the registry it will not be modified. For later versions, if there is no current setting in the registry, the "Not Configured" option will enable Credential Guard without UEFI lock.

Machine Identity Isolation

This setting controls Credential Guard protection of Active Directory machine accounts. Enabling this policy has certain prerequisites. The prerequisites and more information about this policy can be found at https://go.microsoft.com/fwlink/?linkid=2251066.

The "Not Configured" option leaves the policy setting undefined. Group Policy does not write the policy setting to the registry, and so it has no impact on computers or users. If there is a current setting in the registry it will not be modified.

The "Disabled" option turns off Machine Identity Isolation. If this policy was previously set to "Enabled in audit mode", no further action is needed. If this policy was previously set to “Enabled in enforcement mode”, the device must be unjoined and rejoined to the domain. More details can be found at the link above.

The "Enabled in audit mode" option copies the machine identity into Credential Guard. Both LSA and Credential Guard will have access to the machine identity. This allows users to validate that "Enabled in enforcement mode" will work in their Active Directory Domain.

The "Enabled in enforcement mode" option moves the machine identity into Credential Guard. This makes the machine identity only accessible to Credential Guard.

Secure Launch

This setting sets the configuration of Secure Launch to secure the boot chain.

The "Not Configured" setting is the default, and allows configuration of the feature by Administrative users.

The "Enabled" option turns on Secure Launch on supported hardware.

The "Disabled" option turns off Secure Launch, regardless of hardware support.

Kernel-mode Hardware-enforced Stack Protection

This setting enables Hardware-enforced Stack Protection for kernel-mode code. When this security feature is enabled, kernel-mode data stacks are hardened with hardware-based shadow stacks, which store intended return address targets to ensure that program control flow is not tampered.

This security feature has the following prerequisites:
1) The CPU hardware supports hardware-based shadow stacks.
2) Virtualization Based Protection of Code Integrity is enabled.

If either prerequisite is not met, this feature will not be enabled, even if an "Enabled" option is selected for this feature. Note that selecting an "Enabled" option for this feature will not automatically enable Virtualization Based Protection of Code Integrity, that needs to be done separately.

Devices that enable this security feature must be running at least Windows 11 (Version 22H2).

The "Disabled" option turns off kernel-mode Hardware-enforced Stack Protection.

The "Enabled in audit mode" option enables kernel-mode Hardware-enforced Stack Protection in audit mode, where shadow stack violations are not fatal and will be logged to the system event log.

The "Enabled in enforcement mode" option enables kernel-mode Hardware-enforced Stack Protection in enforcement mode, where shadow stack violations are fatal.

The "Not Configured" option leaves the policy setting undefined. Group Policy does not write the policy setting to the registry, and so it has no impact on computers or users. If there is a current setting in the registry it will not be modified.

Warning: All drivers on the system must be compatible with this security feature or the system may crash in enforcement mode. Audit mode can be used to discover incompatible drivers. For more information, refer to https://go.microsoft.com/fwlink/?LinkId=2162953.

French text from Windows 11 26H2

Indique si la sécurité basée sur la virtualisation est activée.

La sécurité basée sur la virtualisation utilise l’hyperviseur Windows pour prendre en charge les services de sécurité. La sécurité basée sur la virtualisation nécessite un démarrage sécurisé et peut éventuellement être activée avec l’utilisation de protections d’accès direct à la mémoire (DMA). Les protections d’accès direct à la mémoire (DMA) nécessitent une prise en charge matérielle et ne sont activées que sur les appareils correctement configurés.

Protection basée sur la virtualisation de l’intégrité du code

Ce paramètre active la protection basée sur la virtualisation de l’intégrité du code en mode noyau. Lorsque cette option est activée, les protections de mémoire en mode noyau sont appliquées et le chemin de validation de l’intégrité du code est protégé par la fonctionnalité de sécurité basée sur la virtualisation.

L’option « Désactivé » désactive la protection basée sur la virtualisation de l’intégrité du code à distance si elle a été précédemment activée avec l’option « Activé sans verrou ».

L’option « Activé avec verrou UEFI » garantit que la protection basée sur la virtualisation de l’intégrité du code ne peut pas être désactivée à distance. Pour désactiver la fonctionnalité, vous devez définir la stratégie de groupe sur « Désactivé », ainsi que supprimer la fonctionnalité de sécurité de chaque ordinateur, avec un utilisateur physiquement présent, afin d’effacer la configuration persistante dans l’interface UEFI.

L’option « Activé sans verrou » permet de désactiver la protection basée sur la virtualisation de l’intégrité du code à distance à l’aide de la stratégie de groupe.

L’option « Non configuré » laisse le paramètre de stratégie non défini. La stratégie de groupe n’écrit pas le paramètre de stratégie dans le Registre et n’a donc aucun impact sur les ordinateurs ou les utilisateurs. S’il existe un paramètre actuel dans le Registre, celui-ci ne sera pas modifié.

L’option « Exiger la table des attributs de mémoire UEFI » active uniquement la protection basée sur la virtualisation de l’intégrité du code sur les appareils avec prise en charge du microprogramme UEFI pour la table des attributs de mémoire. Les appareils sans la table des attributs de mémoire UEFI peuvent avoir un microprogramme incompatible avec la protection basée sur la virtualisation de l’intégrité du code, ce qui, dans certains cas, peut entraîner des blocages, des pertes de données ou une incompatibilité avec certaines cartes enfichables. Si vous ne définissez pas cette option, les appareils ciblés doivent être testés pour garantir la compatibilité.

Avertissement : tous les pilotes du système doivent être compatibles avec cette fonctionnalité, sinon le système risque de se bloquer. Assurez-vous que ce paramètre de stratégie est déployé uniquement sur les ordinateurs qui sont connus pour être compatibles.

Credential Guard

Ce paramètre permet aux utilisateurs d’activer Credential Guard avec une sécurité basée sur la virtualisation pour protéger les informations d’identification.

Pour Windows 11 21H2 et versions antérieures, l’option « Désactivé » désactive la fonctionnalité Credential Guard à distance si elle a été précédemment activée avec l’option « Activé sans verrou ». Pour les versions ultérieures, l’option « Désactivé » désactive la fonctionnalité Credential Guard à distance si elle a été précédemment activée avec l’option « Activé sans verrou » ou si elle l’a été avec l’option « Non configuré ».

L’option « Activé avec verrou UEFI » garantit que Credential Guard ne peut pas être désactivé à distance. Pour désactiver la fonctionnalité, vous devez définir la stratégie de groupe sur « Désactivé », ainsi que supprimer la fonctionnalité de sécurité de chaque ordinateur, avec un utilisateur physiquement présent, afin d’effacer la configuration persistante dans l’interface UEFI.

L’option « Activé sans verrou » permet de désactiver Credential Guard à distance à l’aide de la stratégie de groupe. Les appareils qui utilisent ce paramètre doivent exécuter au moins Windows 10 (version 1511).

Pour Windows 11 21H2 et versions antérieures, l’option « Non configuré » laisse le paramètre de stratégie non défini. La stratégie de groupe n’écrit pas le paramètre de stratégie dans le Registre et n’a donc aucun impact sur les ordinateurs ou les utilisateurs. S’il existe un paramètre actuel dans le Registre, celui-ci ne sera pas modifié. Pour les versions ultérieures, s’il n’existe aucun paramètre actuel dans le Registre, l’option « Non configuré » active Credential Guard sans verrou UEFI.

Isolation de l’identité de l’ordinateur

Ce paramètre contrôle la protection Credential Guard des comptes d’ordinateur Active Directory. L’activation de cette stratégie est soumise à certaines conditions préalables. Les conditions préalables et des informations supplémentaires sur cette stratégie sont disponibles sur https://go.microsoft.com/fwlink/?linkid=2251066.

L’option « Non configuré » laisse le paramètre de stratégie non défini. La stratégie de groupe n’écrit pas le paramètre de stratégie dans le Registre et n’a donc aucun impact sur les ordinateurs ou les utilisateurs. S’il existe un paramètre actuel dans le Registre, celui-ci ne sera pas modifié.

L’option « Désactivé » désactive l’isolation de l’identité de l’ordinateur. Si cette stratégie a été précédemment définie sur « Activé en mode audit », aucune autre action n’est nécessaire. Si cette stratégie a été précédemment définie sur « Activé en mode de mise en conformité », l’appareil doit être déconnecté et reconnecté au domaine. Pour plus d’informations, consultez le lien ci-dessus.

L’option « Activé en mode audit » copie l’identité de l’ordinateur dans Credential Guard. LSA et Credential Guard auront tous deux accès à l’identité de l’ordinateur. Cela permet aux utilisateurs de valider que l’option « Activé en mode de mise en conformité » fonctionnera dans leur domaine Active Directory.

L’option « Activé en mode de mise en conformité » déplace l’identité de l’ordinateur dans Credential Guard. Cela rend l’identité de l’ordinateur accessible uniquement à Credential Guard.

Lancement sécurisé

Ce paramètre définit la configuration du lancement sécurisé pour sécuriser la chaîne de démarrage.

Le paramètre « Non configuré » est la valeur par défaut et autorise la configuration de la fonctionnalité par les utilisateurs administratifs.

L’option « Activé » active le lancement sécurisé sur le matériel pris en charge.

L’option « Désactivé » désactive le lancement sécurisé, quelle que soit la prise en charge matérielle.

Protection de pile renforcée par du matériel en mode noyau

Ce paramètre active la protection de pile renforcée par du matériel pour le code en mode noyau. Lorsque cette fonctionnalité de sécurité est activée, les piles de données en mode noyau sont renforcées avec des piles de clichés instantanés basées sur le matériel, qui stockent les cibles d’adresses de retour prévues pour garantir que le flux de contrôle du programme n’est pas altéré.

Cette fonctionnalité de sécurité présente les conditions préalables suivantes :
1) Le matériel processeur prend en charge les piles de clichés instantanés basées sur le matériel.
2) La protection basée sur la virtualisation de l’intégrité du code est activée.

Si l’une des conditions préalables n’est pas remplie, cette fonctionnalité ne sera pas activée, même si l’option « Activé » est sélectionnée pour cette fonctionnalité. Notez que la sélection de l’option « Activé » pour cette fonctionnalité n’active pas automatiquement la protection basée sur la virtualisation de l’intégrité du code, qui doit être effectuée séparément.

Les appareils qui activent cette fonctionnalité de sécurité doivent exécuter au moins Windows 11 (version 22H2).

L’option « Désactivé » désactive la protection de pile renforcée par du matériel en mode noyau.

L’option « Activé en mode audit » active la protection de pile renforcée par du matériel en mode noyau en mode audit, où les violations de pile de cliché instantané ne sont pas irrécupérables et sont consignées dans le journal des événements système.

L’option « Activé en mode de mise en conformité » active la protection de pile renforcée par du matériel en mode noyau en mode de mise en conformité, où les violations de pile de cliché instantané sont irrécupérables.

L’option « Non configuré » laisse le paramètre de stratégie non défini. La stratégie de groupe n’écrit pas le paramètre de stratégie dans le Registre et n’a donc aucun impact sur les ordinateurs ou les utilisateurs. S’il existe un paramètre actuel dans le Registre, celui-ci ne sera pas modifié.

Avertissement : tous les pilotes du système doivent être compatibles avec cette fonctionnalité de sécurité, sinon le système risque de se bloquer en mode de mise en conformité. Vous pouvez utiliser le mode audit pour détecter des pilotes incompatibles. Pour plus informations, reportez-vous à https://go.microsoft.com/fwlink/?LinkId=2162953.

Use cases

Turns on virtualization-based security (VBS) and, through its options, Credential Guard, which isolates authentication secrets (NTLM hashes, Kerberos tickets) from the rest of the system. Values are "enabled with UEFI lock" (can only be disabled with physical presence) or "enabled without lock" (can be disabled remotely).

Since Windows 11 22H2 and Windows Server 2025, Credential Guard is on by default on compatible hardware, but explicit configuration overrides the default. Enable it before domain join or first sign-in, reboot, and verify with Win32_DeviceGuard rather than Task Manager.

Microsoft source: Configure Credential Guard

Registry

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DeviceGuard
Value name
EnableVirtualizationBasedSecurity
StateValue written
EnabledREG_DWORD = 1
DisabledREG_DWORD = 0

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.

Enable

# Enable: DeviceGuard/VirtualizationBasedSecurity
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeviceGuard'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableVirtualizationBasedSecurity' -Value 1 -Type DWord
# Select Platform Security Level
# Possible options:
#   Secure Boot = 1
#   Secure Boot and DMA Protection = 3
Set-ItemProperty -Path $k -Name 'RequirePlatformSecurityFeatures' -Value 3 -Type DWord
# Virtualization Based Protection of Code Integrity
# Possible options:
#   Disabled = 0
#   Enabled with UEFI lock = 1
#   Enabled without lock = 2
#   Not Configured = 3
Set-ItemProperty -Path $k -Name 'HypervisorEnforcedCodeIntegrity' -Value 3 -Type DWord
# Require UEFI Memory Attributes Table
# unchecked: 0
Set-ItemProperty -Path $k -Name 'HVCIMATRequired' -Value 1 -Type DWord
# Credential Guard Configuration
# Possible options:
#   Disabled = 0
#   Enabled with UEFI lock = 1
#   Enabled without lock = 2
#   Not Configured = 3
Set-ItemProperty -Path $k -Name 'LsaCfgFlags' -Value 3 -Type DWord
# Machine Identity Isolation Configuration
# Possible options:
#   Disabled = 0
#   Enabled in audit mode = 1
#   Enabled in enforcement mode = 2
#   Not Configured = 3
Set-ItemProperty -Path $k -Name 'MachineIdentityIsolation' -Value 3 -Type DWord
# Secure Launch Configuration
# Possible options:
#   Not Configured = 0
#   Enabled = 1
#   Disabled = 2
Set-ItemProperty -Path $k -Name 'ConfigureSystemGuardLaunch' -Value 2 -Type DWord
# Kernel-mode Hardware-enforced Stack Protection
# Possible options:
#   Not Configured = 0
#   Enabled in enforcement mode = 1
#   Enabled in audit mode = 2
#   Disabled = 3
Set-ItemProperty -Path $k -Name 'ConfigureKernelShadowStacksLaunch' -Value 3 -Type DWord

Disable

# Disable: DeviceGuard/VirtualizationBasedSecurity
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeviceGuard'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableVirtualizationBasedSecurity' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": DeviceGuard/VirtualizationBasedSecurity
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeviceGuard'
Remove-ItemProperty -Path $k -Name 'EnableVirtualizationBasedSecurity' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'RequirePlatformSecurityFeatures' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'HypervisorEnforcedCodeIntegrity' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'HVCIMATRequired' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'LsaCfgFlags' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'MachineIdentityIsolation' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'ConfigureSystemGuardLaunch' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'ConfigureKernelShadowStacksLaunch' -ErrorAction SilentlyContinue

Options (7)

LabelControlRegistry valueREG typeConstraints / details
Select Platform Security Level:Sélectionner le niveau de sécurité de plateforme :RequirePlatformSecurityFeaturesDropDrop-down listenumRequirePlatformSecurityFeaturesREG_DWORD
Default choice (UI): #1
LabelValue
Secure BootREG_DWORD = 1
Secure Boot and DMA ProtectionREG_DWORD = 3
Virtualization Based Protection of Code Integrity:Protection basée sur la virtualisation de l’intégrité du code :HypervisorEnforcedCodeIntegrityDropDrop-down listenumHypervisorEnforcedCodeIntegrityREG_DWORD
Default choice (UI): #3
LabelValue
DisabledREG_DWORD = 0
Enabled with UEFI lockREG_DWORD = 1
Enabled without lockREG_DWORD = 2
Not ConfiguredREG_DWORD = 3
Require UEFI Memory Attributes TableDemander la table des attributs de mémoire UEFICheckboxMATCheck boxbooleanHVCIMATRequiredREG_DWORD
Checked: REG_DWORD = 1
Unchecked: REG_DWORD = 0
Credential Guard Configuration:Configuration Credential Guard :CredentialIsolationDropDrop-down listenumLsaCfgFlagsREG_DWORD
Default choice (UI): #3
LabelValue
DisabledREG_DWORD = 0
Enabled with UEFI lockREG_DWORD = 1
Enabled without lockREG_DWORD = 2
Not ConfiguredREG_DWORD = 3
Machine Identity Isolation Configuration:Configuration de l’isolation de l’identité de l’ordinateur :MachineIdentityIsolationDropDrop-down listenumMachineIdentityIsolationREG_DWORD
Default choice (UI): #3
LabelValue
DisabledREG_DWORD = 0
Enabled in audit modeREG_DWORD = 1
Enabled in enforcement modeREG_DWORD = 2
Not ConfiguredREG_DWORD = 3
Secure Launch Configuration:Configuration du Lancement sécurisé :SystemGuardDropDrop-down listenumConfigureSystemGuardLaunchREG_DWORD
Default choice (UI): #2
LabelValue
Not ConfiguredREG_DWORD = 0
EnabledREG_DWORD = 1
DisabledREG_DWORD = 2
Kernel-mode Hardware-enforced Stack Protection:Protection de la pile appliquée par le matériel en mode noyau :KernelShadowStacksDropDrop-down listenumConfigureKernelShadowStacksLaunchREG_DWORD
Default choice (UI): #3
LabelValue
Not ConfiguredREG_DWORD = 0
Enabled in enforcement modeREG_DWORD = 1
Enabled in audit modeREG_DWORD = 2
DisabledREG_DWORD = 3

Availability