This adds to @John Swaringen's post above with the additional identifier for the Admin menu item.
Before applying these changes it's important to ascertain that N++ is indeed installed at C:\Program Files (x86)\Notepad++
. If not, then the correct install path will have to be substituted for it in the appropriate section of the following snippet(s).
On show are three files with links to them on the home drive- or copy the code to a text file with .reg extension:
The first is for the Admin menu item only:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\OpenWithNotepad]
@="Edit with &N++ [Admin]"
"icon"="C:\\Program Files (x86)\\Notepad++\\Notepad++.exe"
[HKEY_CLASSES_ROOT\*\shell\OpenWithNotepad\Command]
@="\"C:\\Program Files (x86)\\Notepad++\\Notepad++.exe\" \"%1\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{B298D29A-A6ED-11DE-BA8C-A68E55D89593}\Settings]
"ShowIcon"=dword:00000000
The second is for both items on the menu:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\OpenWithNotepad]
@="Edit with &N++ [Admin]"
"icon"="C:\\Program Files (x86)\\Notepad++\\Notepad++.exe"
[HKEY_CLASSES_ROOT\*\shell\OpenWithNotepad\Command]
@="\"C:\\Program Files (x86)\\Notepad++\\Notepad++.exe\" \"%1\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{B298D29A-A6ED-11DE-BA8C-A68E55D89593}\Settings]
"ShowIcon"=dword:00000001
The third is to remove the Admin item entirely:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\OpenWithNotepad]
"icon"=-
[HKEY_CLASSES_ROOT\*\shell\OpenWithNotepad\Command]
@=""
[-HKEY_CLASSES_ROOT\*\shell\OpenWithNotepad\Command]
[-HKEY_CLASSES_ROOT\*\shell\OpenWithNotepad]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{B298D29A-A6ED-11DE-BA8C-A68E55D89593}\Settings]
"ShowIcon"=dword:00000001
Necro edit:
For 64 bit N++ try the following:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\OpenWithNotepad]
@="Edit with &N++ [Admin]"
"Icon"=hex(2):43,00,3A,00,5C,00,50,00,72,00,6F,00,67,00,72,00,61,00,6D,00,20,00,46,00,69,00,6C,00,65,00,73,00,5C,00,4E,00,6F,00,74,00,65,00,70,00,61,00,64,00,2B,00,2B,00,5C,00,4E,00,6F,00,74,00,65,00,70,00,61,00,64,00,2B,00,2B,00,2E,00,65,00,78,00,65,00,00,00
[HKEY_CLASSES_ROOT\*\shell\OpenWithNotepad\Command]
@="\"C:\\Program Files\\Notepad++\\Notepad++.exe\" \"%1\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{B298D29A-A6ED-11DE-BA8C-A68E55D89593}\Settings]
"ShowIcon"=dword:00000001
In W11 this only shows on the W10 classic right-click menu, for the W11 menu (without the N++ icon) see this answer.