Add Restore Settings to Libraries Context Menu in Windows 10

It is possible to add Restore Settings to the libraries context menu in Windows 10. You will be able to reset any Library's settings from the right click menu.
Having the Restore Settings context menu command for a Library is time saving. When you need to reset the settings of a Library, you can just right click instead of opening its properties. Let's see how to add the command to the right-click menu of a Library.

Add Restore Settings to Libraries Context Menu in Windows 10

Previously, we saw how to add any Ribbon command to the context menu of File Explorer. The same trick can be used to add the Restore Settings command to the library's right-click menu. For reference, see the article How to add any Ribbon command to the right click menu in Windows 10.

In our case, the required command is located under the following Registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Windows.LibraryRestoreDefaults

See the following screenshot:

As described in the article mentioned above, with a slight modification, we can create a tweak to add the Restore Settings command directly to the library's context menu. Do it as follows.

Here are the contents of the *.reg file that you need to apply.

Windows Registry Editor Version 5.00 
 
[HKEY_CLASSES_ROOT\Folder\shell\Windows.LibraryRestoreDefaults] 
"CommandStateSync"="" 
"ExplorerCommandHandler"="{9a07804e-7050-41d5-a244-badc038df532}" 
"Icon"="imageres.dll,-5358" 
 
 
[HKEY_CLASSES_ROOT\Directory\Background\shell\Windows.LibraryRestoreDefaults] 
"CommandStateSync"="" 
"ExplorerCommandHandler"="{9a07804e-7050-41d5-a244-badc038df532}" 
"Icon"="imageres.dll,-5358" 
 
 
[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\Windows.LibraryRestoreDefaults] 
"CommandStateSync"="" 
"ExplorerCommandHandler"="{9a07804e-7050-41d5-a244-badc038df532}" 
"Icon"="imageres.dll,-5358"

Run Notepad. Copy and paste the text above into a new document.

In Notepad, press Ctrl + S or execute the File - Save item in the menu. This will open the Save dialog.

There, type or copy-paste the following name "LibraryReset.reg" including quotes. Double quotes are important to ensure that the file will get the "*.reg" extension and not *.reg.txt. You can save the file to any desired location, for example, you can put it in your Desktop folder.

Now, double-click the file LibraryReset.reg that you created. Confirm the UAC prompt and click Yes to merge it into the Registry.

Now right click a library. The command will appear in the context menu instantly.

It will be also available in the library background context menu.

Once you click it, it will restore the default settings of a library.

To save your time, I made ready-to-use Registry files. You can download them here:

Download Registry Files

The undo file is included, so you can avoid manual Registry editing completely.

Alternatively, you can use Context Menu Tuner. It will allow you to add any Ribbon command to the Library context menu.

Select "Windows.LibraryRestoreDefaults" in the list of available commands, select "Library" in the right list and click the "Add" button. You can get the app here:

Download Context Menu Tuner

That's it.

Support us

Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:

If you like this article, please share it using the buttons below. It won't take a lot from you, but it will help us grow. Thanks for your support!

Author: Sergey Tkachenko

Sergey Tkachenko is a software developer who started Winaero back in 2011. On this blog, Sergey is writing about everything connected to Microsoft, Windows and popular software. Follow him on Telegram, Twitter, and YouTube.

Leave a Reply

Your email address will not be published.

Exit mobile version
Using Telegram? Subscribe to the blog channel!
Hello. Add your message here.