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
Black Antitoon

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
Tews

64-bit Windows 8.1 Pro
 
 

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

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
zigzag3143

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
Airbot

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: 726
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
Tews

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
Black Antitoon

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
carloak

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
Airbot

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.


-juhuh.jpg



Or try this way.

http://www.sevenforums.com/general-d...nistrator.html


My System SpecsSystem Spec
14 Dec 2011   #10
fseal

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





Similar help and support threads
Thread Forum
Logitech Driving Force EX - Force Feedback Motor Query
So... Before anyone tells me to send it to Logitech for repairs, I should mention that there are none that I know of in my area, and I'm not willing to pay R300 (ZAR) postage to send a big box 600km away to get my wheel 'checked'. Other than that, it's already nearly 3 years old and way out of...
Hardware & Devices
User Administrator Account won't allow Administrator Privilages
Hi, I'm running Win 7 Pro x64 and Office 2007. I installed a Bluetooth transceiver recently and developed a problem when replying to email in Outlook 2007. When I select an email to reply, the email editor pops up with a "Custom UI Runtime Error in Send to Bluetooth." The solution to this issue...
General Discussion
Can't open notepad as a administrator
I'm trying to open notepad as a administrator. I go to start\all programs\accessories\notepad and right click it. NOTHING I'm the only user account on this computer and it is a administrator account. So -- why don't I get any options when I right click it ???
General Discussion
Trying to copy txt file in Notepad. "Notepad: Access is denied"
:mad::confused::cry: If I had known how much hassle Win 7 was I would have stuck with XP! Well I suppose its a learning curve.... Latest major hassle, I have a text file on my E:\drive, this is a copy of my XP C:\ drive before I installed Win 7 on it. I have now been able to get to it...
General Discussion
problem from replaced notepad ++ with notepad
I find some post that saying can replace our notepad with notepad++ so I do it but now it had a problem with notepad++ because when I open every *.txt it ask to create new file....like this picture
Installation & Setup
Error message when I replaces "notepad.exe" by "notepad++.exe"
Hi, I folow this tutorial: How To Replace Notepad in Windows 7 - How-To Geek After, when I started the "notepad.exe" (notepad++ executable) from C:\Windows the error below appears:
General Discussion

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 10:56.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App