Force notepad to run as administrator

Page 1 of 3 123 LastLast

  1. Posts : 11
    Windows 7 RC1 (build 7100)
       #1

    Force notepad to run as administrator


    Hello. This is my first post here.

    I'll be short: how do I set the notepad to run always as administrator? It is not possible through the file properties because it says that I cannot use compatibility settings because the program is a part of Windows. Of course I don't care, I just want to permanently set it to run as admin, but it won't let me do so.

    I have already tried to use those settings on a link to the notepad, same effect.

    Someone will ask me for sure why I need it. I am used to created some temp or test files on the root of C, where only admins can write. This time for example I wanted to try out symbolic links, and I don't want to use a long path for files. Other times I just want to edit a system file. Since the notepad shouldn't be really vulnerable to attacks, I don't see any major risks in doing so.

    Can you help me?
    Thanks!
      My Computer


  2. Posts : 11,840
    64-bit Windows 8.1 Pro
       #2

    Good tutorial ----> Here
      My Computer


  3. Posts : 11
    Windows 7 RC1 (build 7100)
    Thread Starter
       #3

    Thank you, this is good, but not exactly what I need. If I start the notepad from the start menu, I still will get errors. Same if I want to edit, for example, the win.ini files, which is not a txt. Of course a partial solution is still better than no solution at all, I will use this if nobody comes up with something better. Thanks.
      My Computer


  4. Posts : 28,845
    Win 8 Release candidate 8400
       #4

    notepad as admin


    Black Antitoon said:
    Hello. This is my first post here.

    I'll be short: how do I set the notepad to run always as administrator? It is not possible through the file properties because it says that I cannot use compatibility settings because the program is a part of Windows. Of course I don't care, I just want to permanently set it to run as admin, but it won't let me do so.

    I have already tried to use those settings on a link to the notepad, same effect.

    Someone will ask me for sure why I need it. I am used to created some temp or test files on the root of C, where only admins can write. This time for example I wanted to try out symbolic links, and I don't want to use a long path for files. Other times I just want to edit a system file. Since the notepad shouldn't be really vulnerable to attacks, I don't see any major risks in doing so.

    Can you help me?
    Thanks!

    Hey

    First you dont need to run as admin to write a file to root. Second notepad run as admin is dangerous. anyone can add a virus to a notepad file and have admin rights.

    Thirdand I dont suggest it if you want to change notepad go to start access notepad right click and click advanced. On advanced click run as admin done

    Ken

    edit: Aaron speed edge goes to sf gadget
    Last edited by zigzag3143; 15 Dec 2011 at 04:23.
      My Computer


  5. Posts : 18,404
    Windows 7 Ultimate x64 SP1
       #5

    You can right click on the notepad and choose run as administrator every time you want to run it as such.

    Force notepad to run as administrator-notepad1.jpg


    You could also make a shortcut of it on your desktop, right click - properties - Shortcut - Advanced - check Run as admin.


    Zigzag beat me to it by a second.
      My Computer


  6. Posts : 11,840
    64-bit Windows 8.1 Pro
       #6

    Airbot said:
    You can right click on the notepad and choose run as administrator every time you want to run it as such.

    Force notepad to run as administrator-notepad1.jpg


    You could also make a shortcut of it on your desktop, right click - properties - Shortcut - Advanced - check Run as admin.

    We shouldda thunk of that!! Thanks Airbot!
      My Computer


  7. Posts : 11
    Windows 7 RC1 (build 7100)
    Thread Starter
       #7

    zigzag3143 said:
    Hey

    First you dont need to run as admin to write a file to root. Second notpad run as admin is dangerous. anyone can add a virus to a notepad file and have admin rights.
    First, yes, I do need. Such are the default permissions. I think that altering security permissions in the root of C is more dangerous than running the notepad as admin. Second, txt files do not contain executable code or scripts, and I hope that such a simple program (notepad) is not vulnerable to buffer overflows or similar stuff. We are talking of the notepad, not Internet Explorer. In any case, I have been using XP as administrator for ages without suffering damage from viruses (and meeting very few). Being careful is more important than having UAC turned on for security.

    zigzag3143 said:
    Thrid and I dont suggest it if you want to change notepad go to start accesss notepad right click and click advanced. On advanced click run as admin done
    This is half of the solution (only works when I start it manually), but combined which the other half (which only works when I double click on txt files) it will be perfect. Thanks! My problem was that the only way to set to run a program as admin I was aware of was setting it in the compatibility tab, which is disabled for the notepad. I hadn't looked carefully enough to the link properties. Many thanks! :)

    Airbot said:
    You could also make a shortcut of it on your desktop, right click - properties - Shortcut - Advanced - check Run as admin.


    Zigzag beat me to it by a second.
    I'll put such a shortcut in the start menu, thanks! :)
      My Computer


  8. Posts : 7
    Windows 7 Home Premium 64bit
       #8

    Everytime I use notepad I need the administrator token. I am always editing .ini files in a program files directory. So I have to right click then click "run as administrator" every time and then do a file open and navigate to the directory every time. This is not proper programming technique. I am an administrator on this machine and so therefore I should be able to change anything on it. I OWN the machine. It's mine to do with as I please. I do not want to jump through hoops to do what I need to do. I could even see if notepad were to bring up a UAC confirmation. But just 'Access denied'? I need notepad to automatically run as an administrator but that can't be done. Guess I'll have to find a notepad replacement. Thanks Microshaft. They did it to me again. They gave me the shaft.
      My Computer


  9. Posts : 18,404
    Windows 7 Ultimate x64 SP1
       #9

    Like it says above you can just right click on a Notepad shortcut - Properties - Shortcut Tab - Advanced - Run As admin/OK. But that will only open it always as Admin manually from the shortcut.


    Force notepad to run as administrator-juhuh.jpg



    Or try this way.

    https://www.sevenforums.com/general-d...nistrator.html
      My Computer


  10. Posts : 2,528
    Windows 7 x64 Ultimate
       #10

    carloak said:
    Everytime I use notepad I need the administrator token. I am always editing .ini files in a program files directory. So I have to right click then click "run as administrator" every time and then do a file open and navigate to the directory every time. This is not proper programming technique. I am an administrator on this machine and so therefore I should be able to change anything on it. I OWN the machine. It's mine to do with as I please. I do not want to jump through hoops to do what I need to do. I could even see if notepad were to bring up a UAC confirmation. But just 'Access denied'? I need notepad to automatically run as an administrator but that can't be done. Guess I'll have to find a notepad replacement. Thanks Microshaft. They did it to me again. They gave me the shaft.
    This is not proper administrator thinking If you were thinking as an admin you would realize that Microsoft has done you a favor here.

    The problem is if you open up these types of constant-on admin holes in your system then ANY OTHER PROGRAM that is run under your user account also then has potential free admin access to your system through those same programs.

    This is VERY insecure.

    The reason notepad is locked down is because it is a built in program on every version of windows and extremely well known. It would be one of the very FIRST things a virus (which would be running under your user account) would look to as a vehicle for privilege escalation which you are handing to it on a silver platter.

    A true admin realises that when he needs to make admin changes to his system (Even if there are dozens a day) then he purposely raises his privilege to admin level as a conscious action for a limited time for that one purpose.

    Yes you ARE the admin of your machine, but don't just hand over that privilege to every single program that runs under your user account, because that privilege should not be /theirs/.
      My Computer


 
Page 1 of 3 123 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 15:25.
Find Us