Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have been using Notepad2 lately, great util and i added it to the context menu hence i can click on a file and say Notepad2 and it edits it .. but it loads notepad2 without admin privs so i can't save the file.. How can i force it to open with admin privs

Here is what i have, works great apart from can't save in protected parts of disks in vista but of course loading notepad manually as admin works.



[HKEY_CLASSES_ROOT*\shell\Notepad2\command] @="\"C:\Program Files\Notepad2\Notepad2.exe\" \"%1\""

share|improve this question
up vote 1 down vote accepted

You can use the Elevate Power Toy from Microsoft and just change your registry key to

[HKEY_CLASSES_ROOT*\shell\Notepad2\command] @="elevate \"C:\Program Files\Notepad2\Notepad2.exe\" \"%1\""
share|improve this answer

Use a shortcut to hstart (see this question) with the /ELEVATED parameter to start Notepad2.

@="\"c:\\path\\to\\hstart.exe\" /elevated \"\"c:\\Program Files\\Notepad2\\Notepad2.exe\" \"%1\"\""
share|improve this answer

Take a look at Elevator. It adds a context menu "Elevate Me" option, and also allows you to add UAC exlusions for certain programs so that they always open with elevated priviledges. Here's an example of Elevator in action.

share|improve this answer
"add UAC exlusions for certain programs"? Can this be dangerous? – Snark Oct 16 '09 at 20:20
In the case of Notepad2 I highly doubt it. It's not like it automatically adds exclusions for files you download so malware isn't any more dangerous than it was before. – John T Oct 16 '09 at 20:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.