Method 1 of 2:
Install
Open Notepad by going to Start → All Programs → Accessories → Notepad.
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"
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.
Go to the location where you just saved the "NotepadAsAdmin.inf" file. Right click on the file and click on "Install" from context menu.
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.
ncG1vNJzZmismaXArq3KnmWcp51ktbDDjK2mZpmUmXqiuoyop56mXay2tbSMp6atnaCWsW6t0maYnaWZo7a0wNGaq6iqXai1sL7TnKytZaSkerW0xGaaqKakmsW1ecyepa5lmaN6uLXNnaawq11seqK6w2auoqaUpMS0edWiqq2Z