Configure use of hardware-based encryption for operating system drives: registry value OSHardwareEncryption and 3 moreComputerHKLM\Software\Policies\Microsoft\FVE

Policy ID
OSEDrive_Name
Scope
Computer Configuration
Supported on
At least Windows Server 2012, Windows 8 or Windows RT
Source
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
Category
Windows Components › BitLocker Drive Encryption › Operating System Drives

Registry

OSHardwareEncryption

REG_DWORDComputer
Enabled value
1
Disabled value
0
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\FVE]

; Options (use only one)
; Enabled
"OSHardwareEncryption"=dword:00000001
; Disabled
"OSHardwareEncryption"=dword:00000000
CMD
:: Options (use only one)

:: Enabled
reg add "HKLM\SOFTWARE\Policies\Microsoft\FVE" /v "OSHardwareEncryption" /t REG_DWORD /d 1 /f
:: Disabled
reg add "HKLM\SOFTWARE\Policies\Microsoft\FVE" /v "OSHardwareEncryption" /t REG_DWORD /d 0 /f
PowerShell
# Common: create the key
New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\FVE' -Force | Out-Null

# Options (use only one)
# Enabled
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\FVE' -Name 'OSHardwareEncryption' -PropertyType DWord -Value 1 -Force | Out-Null
# Disabled
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\FVE' -Name 'OSHardwareEncryption' -PropertyType DWord -Value 0 -Force | Out-Null

OSAllowSoftwareEncryptionFailover

REG_DWORDComputer
Checked
1
Unchecked
0
Element
Use BitLocker software-based encryption when hardware encryption is not available
Value type
REG_DWORD
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\FVE]

; Options (use only one)
; Checked
"OSAllowSoftwareEncryptionFailover"=dword:00000001
; Unchecked
"OSAllowSoftwareEncryptionFailover"=dword:00000000
CMD
:: Options (use only one)

:: Checked
reg add "HKLM\SOFTWARE\Policies\Microsoft\FVE" /v "OSAllowSoftwareEncryptionFailover" /t REG_DWORD /d 1 /f
:: Unchecked
reg add "HKLM\SOFTWARE\Policies\Microsoft\FVE" /v "OSAllowSoftwareEncryptionFailover" /t REG_DWORD /d 0 /f
PowerShell
# Common: create the key
New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\FVE' -Force | Out-Null

# Options (use only one)
# Checked
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\FVE' -Name 'OSAllowSoftwareEncryptionFailover' -PropertyType DWord -Value 1 -Force | Out-Null
# Unchecked
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\FVE' -Name 'OSAllowSoftwareEncryptionFailover' -PropertyType DWord -Value 0 -Force | Out-Null

OSRestrictHardwareEncryptionAlgorithms

REG_DWORDComputer
Checked
1
Unchecked
0
Element
Restrict encryption algorithms and cipher suites allowed for hardware-based encryption
Value type
REG_DWORD
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\FVE]

; Options (use only one)
; Checked
"OSRestrictHardwareEncryptionAlgorithms"=dword:00000001
; Unchecked
"OSRestrictHardwareEncryptionAlgorithms"=dword:00000000
CMD
:: Options (use only one)

:: Checked
reg add "HKLM\SOFTWARE\Policies\Microsoft\FVE" /v "OSRestrictHardwareEncryptionAlgorithms" /t REG_DWORD /d 1 /f
:: Unchecked
reg add "HKLM\SOFTWARE\Policies\Microsoft\FVE" /v "OSRestrictHardwareEncryptionAlgorithms" /t REG_DWORD /d 0 /f
PowerShell
# Common: create the key
New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\FVE' -Force | Out-Null

# Options (use only one)
# Checked
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\FVE' -Name 'OSRestrictHardwareEncryptionAlgorithms' -PropertyType DWord -Value 1 -Force | Out-Null
# Unchecked
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\FVE' -Name 'OSRestrictHardwareEncryptionAlgorithms' -PropertyType DWord -Value 0 -Force | Out-Null

OSAllowedHardwareEncryptionAlgorithms

REG_EXPAND_SZComputer
Enabled value
Depends on the option value
Element
Restrict crypto algorithms or cipher suites to the following:
Value type
REG_EXPAND_SZ
Required
false
Expandable string (REG_EXPAND_SZ)
true
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\FVE]

; Value names and types follow the ADMX. Replace <enter value> below with your own data
; hex(2) and hex(7) data must be written as hexadecimal (UTF-16LE)
"OSAllowedHardwareEncryptionAlgorithms"=hex(2):<enter value>
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data

reg add "HKLM\SOFTWARE\Policies\Microsoft\FVE" /v "OSAllowedHardwareEncryptionAlgorithms" /t REG_EXPAND_SZ /d "<enter value>" /f
PowerShell
# Value names and types follow the ADMX. Replace <enter value> below with your own data

New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\FVE' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\FVE' -Name 'OSAllowedHardwareEncryptionAlgorithms' -PropertyType ExpandString -Value '<enter value>' -Force | Out-Null