Prevent indexing of certain file types: registry value ExcludedExtensionsMultiline0 and 3 moreComputerHKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search

Policy ID
ExcludedExtensionsMultiline
Scope
Computer Configuration
Supported on
Microsoft Windows XP, Windows Server 2003 with Windows Search version 3.01, or any version of Microsoft Windows with Windows Search 4.0 or later
Source
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
Category
Windows Components › Search

Registry

ExcludedExtensionsMultiline0

REG_SZComputer
Enabled value
Depends on the option value
Element
Exclude
Value type
REG_SZ
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search]

; Value names and types follow the ADMX. Replace <enter value> below with your own data
"ExcludedExtensionsMultiline0"="<enter value>"
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data

reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "ExcludedExtensionsMultiline0" /t REG_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\Windows\Windows Search' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search' -Name 'ExcludedExtensionsMultiline0' -PropertyType String -Value '<enter value>' -Force | Out-Null

ExcludedExtensionsMultiline1

REG_SZComputer
Enabled value
Depends on the option value
Element
and
Value type
REG_SZ
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search]

; Value names and types follow the ADMX. Replace <enter value> below with your own data
"ExcludedExtensionsMultiline1"="<enter value>"
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data

reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "ExcludedExtensionsMultiline1" /t REG_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\Windows\Windows Search' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search' -Name 'ExcludedExtensionsMultiline1' -PropertyType String -Value '<enter value>' -Force | Out-Null

ExcludedExtensionsMultiline2

REG_SZComputer
Enabled value
Depends on the option value
Element
and
Value type
REG_SZ
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search]

; Value names and types follow the ADMX. Replace <enter value> below with your own data
"ExcludedExtensionsMultiline2"="<enter value>"
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data

reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "ExcludedExtensionsMultiline2" /t REG_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\Windows\Windows Search' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search' -Name 'ExcludedExtensionsMultiline2' -PropertyType String -Value '<enter value>' -Force | Out-Null

ExcludedExtensionsMultiline3

REG_SZComputer
Enabled value
Depends on the option value
Element
and
Value type
REG_SZ
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search]

; Value names and types follow the ADMX. Replace <enter value> below with your own data
"ExcludedExtensionsMultiline3"="<enter value>"
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data

reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "ExcludedExtensionsMultiline3" /t REG_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\Windows\Windows Search' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search' -Name 'ExcludedExtensionsMultiline3' -PropertyType String -Value '<enter value>' -Force | Out-Null