System settings: Optional subsystems: registry value optionalComputerHKLM\System\CurrentControlSet\Control\Session Manager\SubSystems
- Category
- Security Settings › Local Policies › Security Options
- Scope
- Computer Configuration
- Source
- Windows 11 (version 26H2 · 26300.9457)
Registry
optional
REG_MULTI_SZComputer- Enabled value
- Depends on the option value
- Element
- System settings: Optional subsystems
- Value type
- REG_MULTI_SZ
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\SubSystems] ; hex(2) and hex(7) data must be written as hexadecimal (UTF-16LE) "optional"=hex(7):<enter value>
CMD
reg add "HKLM\System\CurrentControlSet\Control\Session Manager\SubSystems" /v "optional" /t REG_MULTI_SZ /d "<enter value>" /f
PowerShell
New-Item -Path 'HKLM:\System\CurrentControlSet\Control\Session Manager\SubSystems' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Session Manager\SubSystems' -Name 'optional' -PropertyType MultiString -Value '<enter value>' -Force | Out-Null