How to Add an 'Open With Notepad As Administrator' Shortcut to the Context Menu in Windows 7 and Windows Vista

In Windows Vista and Windows 7, when you double-click a text file which is located in a protected system folder (like the 'Program Files' folder) or one of its subfolders, you'll notice that you can view its contents, but you will not be...
Method 1 of 2:

Install

  1. How to Add an 'Open With Notepad As Administrator' Shortcut to the Context Menu in Windows 7 and Windows Vista Picture 1How to Add an 'Open With Notepad As Administrator' Shortcut to the Context Menu in Windows 7 and Windows Vista Picture 1
    Open Notepad by going to Start → All Programs → Accessories → Notepad.
  2. Copy codes given below and paste them in Notepad.
[version] signature="$CHICAGO$" [NotepadAsAdminInstall] CopyFiles = NotepadAsAdmin.Files.Inf AddReg = NotepadAsAdmin.AddReg [DefaultInstall] CopyFiles = NotepadAsAdmin.Files.Inf AddReg = NotepadAsAdmin.AddReg [DefaultUnInstall] DelFiles = NotepadAsAdmin.Files.Inf DelReg = NotepadAsAdmin.DelReg [SourceDisksNames] 55="Notepad as Admin","",1 [SourceDisksFiles] NotepadAsAdmin.INF=55 [DestinationDirs] NotepadAsAdmin.Files.Inf = 17 [NotepadAsAdmin.Files.Inf] NotepadAsAdmin.INF [NotepadAsAdmin.AddReg] HKLM,%UDHERE%,DisplayName,,"%NotepadAsAdminName%" HKLM,%UDHERE%,UninstallString,,"rundll32.exe syssetup.dll, SetupInfObjectInstallAction DefaultUninstall 132 %17%NotepadAsAdmin.inf" HKCR,*Shellrunas,,,"%NotepadAsAdminAccel%" HKCR,*Shellrunascommand,,,"%11%notepad.exe ""%1""" [NotepadAsAdmin.DelReg] HKLM,%UDHERE% HKCR,DirectoryShellrunas HKCR,DriveShellrunas [Strings] NotepadAsAdminName="Notepad as Admin PowerToy (Uninstall only)" NotepadAsAdminAccel="Notepad as Admin" UDHERE="SoftwareMicrosoftWindowsCurrentVersionUninstallNotepadAsAdmin" 
How to Add an 'Open With Notepad As Administrator' Shortcut to the Context Menu in Windows 7 and Windows Vista Picture 2How to Add an 'Open With Notepad As Administrator' Shortcut to the Context Menu in Windows 7 and Windows Vista Picture 2
  1. How to Add an 'Open With Notepad As Administrator' Shortcut to the Context Menu in Windows 7 and Windows Vista Picture 3How to Add an 'Open With Notepad As Administrator' Shortcut to the Context Menu in Windows 7 and Windows Vista Picture 3
    In Notepad, go to File → Save As... and save the file with name NotepadAsAdmin.inf. Be sure to change the Save as Type: from Text Documents to All Files.
  2. How to Add an 'Open With Notepad As Administrator' Shortcut to the Context Menu in Windows 7 and Windows Vista Picture 4How to Add an 'Open With Notepad As Administrator' Shortcut to the Context Menu in Windows 7 and Windows Vista Picture 4
    Go to the location where you just saved the "NotepadAsAdmin.inf" file. Right click on the file and click on "Install" from context menu.
  3. To try it, right-click on any file in Windows Explorer and you will see a new menu item called "Notepad as Admin". Click on that option and that file will be opened in Notepad.
How to Add an 'Open With Notepad As Administrator' Shortcut to the Context Menu in Windows 7 and Windows Vista Picture 5How to Add an 'Open With Notepad As Administrator' Shortcut to the Context Menu in Windows 7 and Windows Vista Picture 5
Method 2 of 2:

Uninstall

  1. How to Add an 'Open With Notepad As Administrator' Shortcut to the Context Menu in Windows 7 and Windows Vista Picture 6How to Add an 'Open With Notepad As Administrator' Shortcut to the Context Menu in Windows 7 and Windows Vista Picture 6
    Go to Start → Control Panel → Add or Remove Programs.
  2. How to Add an 'Open With Notepad As Administrator' Shortcut to the Context Menu in Windows 7 and Windows Vista Picture 7How to Add an 'Open With Notepad As Administrator' Shortcut to the Context Menu in Windows 7 and Windows Vista Picture 7
    Click on the Remove for Notepad as Admin PowerToy (Uninstall only) entry.
5 ★ | 2 Vote