Running notepad.exe as Administrator

Man, back on Windows for my new studio computer ‘verve‘. Needed to figure out how to edit C:\Windows\System32\drivers\etc\hosts and that was certainly more difficult than it needed to be.

In the end I used “Method 3” over here to add an “Open in Notepad (Admin)” item to my shell context menu:

  • Open regedit
  • Navigate to: HKEY_CLASSES_ROOT\*\shell
  • Add a new key ‘runas’ under ‘shell’
  • Change (Default) to: Open with Notepad (Admin)
  • Add a new key ‘command’ under ‘runas’
  • Change (Default) to: notepad %1

Leave a Reply