Configure use of passwords for operating system drives: registry value OSPassphrase and 3 moreComputerHKLM\Software\Policies\Microsoft\FVE

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

Registry

OSPassphrase

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
"OSPassphrase"=dword:00000001
; Disabled
"OSPassphrase"=dword:00000000
CMD
:: Options (use only one)

:: Enabled
reg add "HKLM\Software\Policies\Microsoft\FVE" /v "OSPassphrase" /t REG_DWORD /d 1 /f
:: Disabled
reg add "HKLM\Software\Policies\Microsoft\FVE" /v "OSPassphrase" /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 'OSPassphrase' -PropertyType DWord -Value 1 -Force | Out-Null
# Disabled
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\FVE' -Name 'OSPassphrase' -PropertyType DWord -Value 0 -Force | Out-Null

OSPassphraseComplexity

REG_DWORDComputer
Enabled value
Depends on the option value
Element
Configure password complexity for operating system drives:
Options
ItemStored value
Allow password complexity2
Do not allow password complexity0
Require password complexity1
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\FVE]

; Options (use only one)
; Allow password complexity
"OSPassphraseComplexity"=dword:00000002
; Do not allow password complexity
"OSPassphraseComplexity"=dword:00000000
; Require password complexity
"OSPassphraseComplexity"=dword:00000001
CMD
:: Options (use only one)

:: Allow password complexity
reg add "HKLM\Software\Policies\Microsoft\FVE" /v "OSPassphraseComplexity" /t REG_DWORD /d 2 /f
:: Do not allow password complexity
reg add "HKLM\Software\Policies\Microsoft\FVE" /v "OSPassphraseComplexity" /t REG_DWORD /d 0 /f
:: Require password complexity
reg add "HKLM\Software\Policies\Microsoft\FVE" /v "OSPassphraseComplexity" /t REG_DWORD /d 1 /f
PowerShell
# Common: create the key
New-Item -Path 'HKLM:\Software\Policies\Microsoft\FVE' -Force | Out-Null

# Options (use only one)
# Allow password complexity
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\FVE' -Name 'OSPassphraseComplexity' -PropertyType DWord -Value 2 -Force | Out-Null
# Do not allow password complexity
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\FVE' -Name 'OSPassphraseComplexity' -PropertyType DWord -Value 0 -Force | Out-Null
# Require password complexity
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\FVE' -Name 'OSPassphraseComplexity' -PropertyType DWord -Value 1 -Force | Out-Null

OSPassphraseLength

REG_DWORDComputer
Enabled value
Depends on the option value
Element
Minimum password length for operating system drive:
Value type
REG_DWORD
Required
true
Minimum value
8
Maximum value
255
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
"OSPassphraseLength"=dword:<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 "OSPassphraseLength" /t REG_DWORD /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 'OSPassphraseLength' -PropertyType DWord -Value '<enter value>' -Force | Out-Null

OSPassphraseASCIIOnly

REG_DWORDComputer
Checked
1
Unchecked
0
Element
Require ASCII-only passwords for removable OS drives
Value type
REG_DWORD
Required
true
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\FVE]

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

:: Checked
reg add "HKLM\Software\Policies\Microsoft\FVE" /v "OSPassphraseASCIIOnly" /t REG_DWORD /d 1 /f
:: Unchecked
reg add "HKLM\Software\Policies\Microsoft\FVE" /v "OSPassphraseASCIIOnly" /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 'OSPassphraseASCIIOnly' -PropertyType DWord -Value 1 -Force | Out-Null
# Unchecked
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\FVE' -Name 'OSPassphraseASCIIOnly' -PropertyType DWord -Value 0 -Force | Out-Null