Monday, May 14, 2012

Getting notepad to obey

I always wanted notepad to be ran as admin.  I can't think of a case where I didn't want it to be.  So I browsed to notepad.exe and was going to turn on "always run as admin" but the option was blanked out.  I figured out how to bypass that though.  Do these three easy steps if you want always admin notepad
  1. open regedit.
  2. go to:
    HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
  3. add a value (a string):
    Name: C:\Windows\system32\notepad.exe
    Value: RUNASADMIN
That's it!  I never see any privilege error messages again using notepad.  You can do this for any application, but be aware that it will always be ran with elevated privileges.

No comments:

Post a Comment