Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Force notepad to run as administrator


20 Jul 2009   #1

Windows 7 RC1 (build 7100)
 
 
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 System SpecsSystem Spec
.

20 Jul 2009   #2

64-bit Windows 8.1 Pro
 
 

Good tutorial ----> Here
My System SpecsSystem Spec
20 Jul 2009   #3

Windows 7 RC1 (build 7100)
 
 

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 System SpecsSystem Spec
.


20 Jul 2009   #4

Win 8 Release candidate 8400
 
 
notepad as admin

Quote   Quote: Originally Posted by Black Antitoon View Post
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
My System SpecsSystem Spec
20 Jul 2009   #5

Windows 7 Ultimate x64 SP1
 
 

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

Name:  notepad1.JPG
Views: 725
Size:  28.1 KB


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 System SpecsSystem Spec
20 Jul 2009   #6

64-bit Windows 8.1 Pro
 
 

Quote   Quote: Originally Posted by Airbot View Post
You can right click on the notepad and choose run as administrator every time you want to run it as such.

Attachment 19089


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 System SpecsSystem Spec
21 Jul 2009   #7

Windows 7 RC1 (build 7100)
 
 

Quote   Quote: Originally Posted by zigzag3143 View Post
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.

Quote   Quote: Originally Posted by zigzag3143 View Post
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!

Quote   Quote: Originally Posted by Airbot View Post
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 System SpecsSystem Spec
14 Dec 2011   #8

Windows 7 Home Premium 64bit
 
 

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 System SpecsSystem Spec
14 Dec 2011   #9

Windows 7 Ultimate x64 SP1
 
 

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.

How to always open any file w/ Notepad as Administrator


My System SpecsSystem Spec
14 Dec 2011   #10

Windows 7 x64 Ultimate
 
 

Quote   Quote: Originally Posted by carloak View Post
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 System SpecsSystem Spec
Reply

 Force notepad to run as administrator




Thread Tools




Our Sites

Site Links

About Us

Find 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 03:04 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33