Pin Libraries or Search Connectors to the "Search again" links and the Start menu: registry value TryHarderPinnedLibrary and 5 moreUserHKCU\Software\Policies\Microsoft\Windows\Explorer
- Policy ID
- TryHarderPinnedLibrary
- Scope
- User Configuration
- Supported on
- At least Windows Server 2008 R2 or Windows 7
- Source
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
- Category
- Windows Components › File Explorer
Registry
TryHarderPinnedLibrary
REG_DWORDUser- Enabled value
- 1
- Disabled value
- 0
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer] ; Options (use only one) ; Enabled "TryHarderPinnedLibrary"=dword:00000001 ; Disabled "TryHarderPinnedLibrary"=dword:00000000
CMD
:: Options (use only one) :: Enabled reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "TryHarderPinnedLibrary" /t REG_DWORD /d 1 /f :: Disabled reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "TryHarderPinnedLibrary" /t REG_DWORD /d 0 /f
PowerShell
# Common: create the key New-Item -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Force | Out-Null # Options (use only one) # Enabled New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'TryHarderPinnedLibrary' -PropertyType DWord -Value 1 -Force | Out-Null # Disabled New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'TryHarderPinnedLibrary' -PropertyType DWord -Value 0 -Force | Out-Null
Library0
REG_SZUser- Enabled value
- Depends on the option value
- Element
- Location 1
- Value type
- REG_SZ
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer] ; Value names and types follow the ADMX. Replace <enter value> below with your own data "Library0"="<enter value>"
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "Library0" /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 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Force | Out-Null New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'Library0' -PropertyType String -Value '<enter value>' -Force | Out-Null
Library1
REG_SZUser- Enabled value
- Depends on the option value
- Element
- Location 2
- Value type
- REG_SZ
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer] ; Value names and types follow the ADMX. Replace <enter value> below with your own data "Library1"="<enter value>"
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "Library1" /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 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Force | Out-Null New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'Library1' -PropertyType String -Value '<enter value>' -Force | Out-Null
Library2
REG_SZUser- Enabled value
- Depends on the option value
- Element
- Location 3
- Value type
- REG_SZ
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer] ; Value names and types follow the ADMX. Replace <enter value> below with your own data "Library2"="<enter value>"
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "Library2" /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 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Force | Out-Null New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'Library2' -PropertyType String -Value '<enter value>' -Force | Out-Null
Library3
REG_SZUser- Enabled value
- Depends on the option value
- Element
- Location 4
- Value type
- REG_SZ
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer] ; Value names and types follow the ADMX. Replace <enter value> below with your own data "Library3"="<enter value>"
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "Library3" /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 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Force | Out-Null New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'Library3' -PropertyType String -Value '<enter value>' -Force | Out-Null
Library4
REG_SZUser- Enabled value
- Depends on the option value
- Element
- Location 5
- Value type
- REG_SZ
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer] ; Value names and types follow the ADMX. Replace <enter value> below with your own data "Library4"="<enter value>"
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "Library4" /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 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Force | Out-Null New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'Library4' -PropertyType String -Value '<enter value>' -Force | Out-Null