Personalization Add or Remove "Add to Favorites" Context Menu in Windows 11


Quick_access_banner.png

This tutorial will show you how to add or remove the Add to Favorites context menu for your account or all users in Windows 11.

Starting with Windows 11 build 22593, Quick access in File Explorer (Win+E) is now called Home. The name Quick access has been repurposed for the pinned/frequent Folders section, and Pinned files is now called Favorites to align with Office and OneDrive. Recent and pinned files (Favorites) displayed in Home are now searchable using the search box in File Explorer even if they are not local files, so you can find Office files recently shared with you.

Home in the navigation pane is the default homepage of File Explorer (Win+E) that allows you to quickly access and view your pinned/frequent locations (Quick access), Favorites (pinned files), and Recent files from one location.

You can use the Add to Favorites context menu to pin files you want to File Explorer Home.



Contents

  • Option One: Add or Remove "Add to Favorites" Context Menu for Current User
  • Option Two: Add or Remove "Add to Favorites" Context Menu for All Users


EXAMPLE: "Add to Favorites" context menu

Add_to_Favorites.png


EXAMPLE: Favorites in File Explorer Home

Favorites_in_File_Explorer_Home.webp





Option One

Add or Remove "Add to Favorites" Context Menu for Current User


1 Do step 2 (add) or step 3 (remove) below for what you want.


 2. Add "Add to Favorites" Context Menu for Current User

This is the default setting.


A) Click/tap on the Download button below to download the file below, and go to step 4 below.​

Add-Add_to_Favorites_context_menu_for_current_user.reg


(Contents of REG file for reference)
Code:
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Classes\*\shell\pintohomefile]
"ProgrammaticAccessOnly"=-


 3. Remove "Add to Favorites" Context Menu for Current User

A) Click/tap on the Download button below to download the file below, and go to step 4 below.​

Remove-Add_to_Favorites_context_menu_for_current_user.reg


(Contents of REG file for reference)
Code:
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Classes\*\shell\pintohomefile]
"ProgrammaticAccessOnly"=""

4 Save the REG file to your desktop.

5 If you have Smart App Control turned on, you will need to unblock the downloaded REG file.

6 Double click/tap on the downloaded REG file to merge it.

7 When prompted, click/tap on Run, Yes (UAC), Yes, and OK to approve the merge.

8 You can now delete the downloaded REG file if you like.




Option Two

Add or Remove "Add to Favorites" Context Menu for All Users


You must be signed in as an administrator to use this option.


1 Do step 2 (add) or step 3 (remove) below for what you want.


 2. Add "Add to Favorites" Context Menu for All Users

This is the default setting.


A) Click/tap on the Download button below to download the file below, and go to step 4 below.​

Add-Add_to_Favorites_context_menu_for_all_users.reg


(Contents of REG file for reference)
Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\pintohomefile]
"ProgrammaticAccessOnly"=-

[HKEY_CURRENT_USER\Software\Classes\*\shell\pintohomefile]
"ProgrammaticAccessOnly"=-


 3. Remove "Add to Favorites" Context Menu for All Users

A) Click/tap on the Download button below to download the file below, and go to step 4 below.​

Remove-Remove-Add_to_Favorites_context_menu_for_all_users.reg


(Contents of REG file for reference)
Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\pintohomefile]
"ProgrammaticAccessOnly"=""

4 Save the REG file to your desktop.

5 If you have Smart App Control turned on, you will need to unblock the downloaded REG file.

6 Double click/tap on the downloaded REG file to merge it.

7 When prompted, click/tap on Run, Yes (UAC), Yes, and OK to approve the merge.

8 You can now delete the downloaded REG file if you like.


That's it,
Shawn Brink


 

Attachments

Last edited:
Hi,
Nice :cool:
 

My Computer

System One

  • OS
    Win-7-10-11Pro's
    Computer type
    PC/Desktop
    Manufacturer/Model
    Acer 17" Nitro 7840sn/ 2x16gb 5600c40/ 4060/ stock 1tb-os/ 4tb sn850x
    CPU
    10900k & 9940x & 5930k
    Motherboard
    z490-Apex & x299-Apex & x99-Sabertooth
    Memory
    Trident-Z Royal 4000c16 2x16gb & Trident-Z 3600c16 4x8gb & 3200c14 4x8gb
    Graphics Card(s)
    Titan Xp & 1080ti FTW3 & evga 980ti gaming
    Sound Card
    Onboard Realtek x3
    Monitor(s) Displays
    1-AOC G2460PG 24"G-Sync 144Hz/ 2nd 1-ASUS VG248QE 24"/ 3rd LG 43" series
    Screen Resolution
    1920-1080 not sure what the t.v is besides 43" class scales from 1920-1080 perfectly
    Hard Drives
    2-WD-sn850x 4tb/ 970evo+500gb/ 980 pro 2tb.
    PSU
    1000p2 & 1200p2 & 850p2
    Case
    D450 x2 & 1 Test bench in cherry Entertainment center
    Cooling
    Custom water loops x3 with 2x mora 360mm rads only 980ti gaming air cooled
    Keyboard
    G710+x3
    Mouse
    Redragon x3
    Internet Speed
    xfinity gigabyte
    Browser
    Firefox
    Antivirus
    mbam pro
@Brink

EDIT: Never mind, it's all good! (y)
 
Last edited:

My Computers

System One System Two

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    ASUS ROG Strix
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    ASUS VivoBook
Thanks
 

My Computer

System One

  • OS
    window 11 home
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Inc.
    Motherboard
    Enhanced (101 - or 102-key)
Yes, excellent! Thanks Shawn.

Kind regards,

tecknot
 

My Computer

System One

  • OS
    Windows 11 Pro 25H2 build 26200.8457
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkPad Workstation P72
    CPU
    Intel i7 8750H @ 2.2 GHz
    Motherboard
    Lenovo 01YU291
    Memory
    16 GB (all Samsung) DDR4-3200 SODIMM (non-ECC) PCIe 3
    Graphics Card(s)
    Intel UHD Graphics 630 & NVIDIA Quadro P600
    Sound Card
    Realtek ALC3286 & Focusrite Saffire 24 Pro DSP
    Monitor(s) Displays
    17.3"
    Screen Resolution
    3840x2160
    Hard Drives
    1TB SSD Samsung 860 EVO SATA 3
    1TB SSD Samsung 970 EVO M.2 NVMe PCIe 3 x 4
    2TB SSD Samsung 990 PRO M.2 NVMe PCIe 3 x 4
    PSU
    230W
    Cooling
    fan
    Keyboard
    UltraNav
    Mouse
    Kensington wireless Orbit
    Internet Speed
    640Mbps
    Browser
    DuckDuckGo and Firefox
    Antivirus
    Defender
    Other Info
    CM246 Chipset

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    TerraMaster F8 SSD Plus NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Amazon Basics Wired Full Keyboard MD005
    Mouse
    Logitech MX Master 4
    Internet Speed
    2 Gbps Download and 100 Mbps Upload
    Browser
    Chrome and Edge
    Antivirus
    Microsoft Defender
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    CyberPower CP1500PFCLCD
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Surface Laptop 7 Copilot+ PC
    CPU
    Snapdragon X Elite (12 core) 3.42 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Monitor(s) Displays
    15" HDR
    Screen Resolution
    2496 x 1664
    Hard Drives
    1 TB SSD
    Internet Speed
    Wi-Fi 7 and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Microsoft Defender
I think that there can be issues with registry edits that refer to HKEY_CLASSES_ROOT.
(Contents of REG file for reference)

Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\pintohomefile]
"ProgrammaticAccessOnly"=-

[HKEY_CURRENT_USER\Software\Classes\*\shell\pintohomefile]
"ProgrammaticAccessOnly"=-

If ProgrammaticAccessOnly is set in HKEY_CURRENT_USER\Software\Classes, then because it takes precedence over any setting from HKEY_LOCAL_MACHINE\SOFTWARE\Classes, then deleting from HKEY_CLASSES_ROOT as the first section shows will delete from HKEY_CURRENT_USER\Software\Classes, so the second section will have no effect. And in the unlikely situation that ProgrammaticAccessOnly is set in HKEY_LOCAL_MACHINE\SOFTWARE\Classes as well, then we'd have to rerun the reg script to remove it.

Also, if you set and unset ProgrammaticAccessOnly as a user, then the key in HKEY_CURRENT_USER\Software\Classes will still exist, and writing to HKEY_CLASSES_ROOT will write to HKEY_CURRENT_USER\Software\Classes.

I think that the best way to deal with this is to write explicitly to HKEY_LOCAL_MACHINE\SOFTWARE\Classes. In this tutorial there's an implicit assumption that references to HKEY_CLASSES_ROOT always refer to HKEY_LOCAL_MACHINE\SOFTWARE\Classes. Mostly that will hold, but here we are giving instructions on how to make this change for the current user, which will break the assumption.

So, I've read many instructions that simply say write to HKEY_CLASSES_ROOT , and I automatically think of writing to HKEY_CURRENT_USER\Software\Classes instead, but as soon as we start suggesting this to users who simply follow tutorials, we've added an extra complication. I think it's worth it, I think that there are some who won't.
 

My Computers

System One System Two

  • OS
    Windows 11 25H2 Pro Build 26200
    Computer type
    PC/Desktop
    Manufacturer/Model
    MSI PRO ADL-U Cubi 5 (MS-B0A8)
    CPU
    i3-1215U
    Memory
    8GB
    Monitor(s) Displays
    Sony 43" 4k TV
    Screen Resolution
    3840x2160
    Hard Drives
    250GB NVMe M.2 PCIe Gen 3 SSD
    PSU
    External 65W
    Case
    Mini PC
    Browser
    FireFox
    Antivirus
    MS
  • Operating System
    Windows 11 Pro 25H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 3070 SFF
    CPU
    Intel i3-9100
    Memory
    16GB DDR4
    Monitor(s) Displays
    Dell S2721
    Screen Resolution
    3840 x 2160
    Hard Drives
    Samsung 500GB nvMe
    Case
    Dell small form factor
    Keyboard
    Cherry mechanical (Blue)
    Mouse
    Microsoft
    Antivirus
    MS Defender
I think that there can be issues with registry edits that refer to HKEY_CLASSES_ROOT.


Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\pintohomefile]
"ProgrammaticAccessOnly"=-

[HKEY_CURRENT_USER\Software\Classes\*\shell\pintohomefile]
"ProgrammaticAccessOnly"=-

If ProgrammaticAccessOnly is set in HKEY_CURRENT_USER\Software\Classes, then because it takes precedence over any setting from HKEY_LOCAL_MACHINE\SOFTWARE\Classes, then deleting from HKEY_CLASSES_ROOT as the first section shows will delete from HKEY_CURRENT_USER\Software\Classes, so the second section will have no effect. And in the unlikely situation that ProgrammaticAccessOnly is set in HKEY_LOCAL_MACHINE\SOFTWARE\Classes as well, then we'd have to rerun the reg script to remove it.

Also, if you set and unset ProgrammaticAccessOnly as a user, then the key in HKEY_CURRENT_USER\Software\Classes will still exist, and writing to HKEY_CLASSES_ROOT will write to HKEY_CURRENT_USER\Software\Classes.

I think that the best way to deal with this is to write explicitly to HKEY_LOCAL_MACHINE\SOFTWARE\Classes. In this tutorial there's an implicit assumption that references to HKEY_CLASSES_ROOT always refer to HKEY_LOCAL_MACHINE\SOFTWARE\Classes. Mostly that will hold, but here we are giving instructions on how to make this change for the current user, which will break the assumption.

So, I've read many instructions that simply say write to HKEY_CLASSES_ROOT , and I automatically think of writing to HKEY_CURRENT_USER\Software\Classes instead, but as soon as we start suggesting this to users who simply follow tutorials, we've added an extra complication. I think it's worth it, I think that there are some who won't.

Hello mate, :alien:

Usually writing to the HKCR or HKLM location will write to the other as well. HKCU is separate, and doesn't get written to by the other locations.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    TerraMaster F8 SSD Plus NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Amazon Basics Wired Full Keyboard MD005
    Mouse
    Logitech MX Master 4
    Internet Speed
    2 Gbps Download and 100 Mbps Upload
    Browser
    Chrome and Edge
    Antivirus
    Microsoft Defender
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    CyberPower CP1500PFCLCD
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Surface Laptop 7 Copilot+ PC
    CPU
    Snapdragon X Elite (12 core) 3.42 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Monitor(s) Displays
    15" HDR
    Screen Resolution
    2496 x 1664
    Hard Drives
    1 TB SSD
    Internet Speed
    Wi-Fi 7 and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Microsoft Defender
Usually writing to the HKCR or HKLM location will write to the other as well. HKCU is separate, and doesn't get written to by the other locations.
If you write a new key to HKCR, it is always written to HKLM.

If you write a value to an existing key in HKCR it is written to HKLM only if the key doesn't exist in HKCU, but if the key exists in HKCU, then that's where it's written.
 

My Computers

System One System Two

  • OS
    Windows 11 25H2 Pro Build 26200
    Computer type
    PC/Desktop
    Manufacturer/Model
    MSI PRO ADL-U Cubi 5 (MS-B0A8)
    CPU
    i3-1215U
    Memory
    8GB
    Monitor(s) Displays
    Sony 43" 4k TV
    Screen Resolution
    3840x2160
    Hard Drives
    250GB NVMe M.2 PCIe Gen 3 SSD
    PSU
    External 65W
    Case
    Mini PC
    Browser
    FireFox
    Antivirus
    MS
  • Operating System
    Windows 11 Pro 25H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 3070 SFF
    CPU
    Intel i3-9100
    Memory
    16GB DDR4
    Monitor(s) Displays
    Dell S2721
    Screen Resolution
    3840 x 2160
    Hard Drives
    Samsung 500GB nvMe
    Case
    Dell small form factor
    Keyboard
    Cherry mechanical (Blue)
    Mouse
    Microsoft
    Antivirus
    MS Defender

Latest Support Threads

Back
Top Bottom