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: Issues with running applications with Admin Privilege

01 Oct 2010   #1
1nfected

Windows 7 Enterprise x64
 
 
Issues with running applications with Admin Privilege

I am having issues with running certain apps with admin privilege.
I have installed Notepad++ which i use for my .js files.
Now here's what's happening:
When im editing a file which is located in the programfiles folder, it wouldn't allow me to save it. I can only save it if i close the app, give it admin privilege(right click->compatibility->check run as admin).
This is fine with me. But if i do that, another issue pops up. I am then not able to open files in notepad++ via the context menu. neither can i drag drop the file onto notepad++. ( i get an error: Error in CreateProcess (740) )

I also have a similar issue with chrome(7.0.517.24).
If i set it to run as admin, i can't drag and drop files onto chrome!
If i uncheck the 'run as admin' option, it works. I am able to drop files onto chrome as usual.


I dont' know what could be causing this. I know it's UAC related, but i can't understand why would apps have problem opening files when they are running in 'admin mode'!


My System SpecsSystem Spec
.
01 Oct 2010   #2
Lemur

Systems 1 and 2: Windows 7 Enterprise x64, Win 8 Developer
 
 

See if you are a standard or administrator user.

I doubt it's UAC related. Most likely due to permission rights of user, or file or folder. By running the program as admin and saving the file, it probably affects the file rights.
My System SpecsSystem Spec
01 Oct 2010   #3
1nfected

Windows 7 Enterprise x64
 
 

I am the Administrator. It's the a/c that i created when installing 7.

However, here's what i did, which got it working for me.
I took ownership of the files that i wanted to modify in programfiles folder.
(right click - properties - security - advanced - owner - edit).
Now notepad++ is able to save the file.
My System SpecsSystem Spec
.

01 Oct 2010   #4
Lemur

Systems 1 and 2: Windows 7 Enterprise x64, Win 8 Developer
 
 

Excellent. Glad you got it resolved. So it was a rights issue.
My System SpecsSystem Spec
02 Oct 2010   #5
1nfected

Windows 7 Enterprise x64
 
 

Yea, a part of it is solved.

But i still don't understand why cant apps open files when they are run with admin privileges.
I even tried the same with Opera. Once given admin privileges, it can't open files when drag n dropped onto it!
My System SpecsSystem Spec
02 Oct 2010   #6
logicearth

Windows 10 Pro (x64)
 
 

You cannot drag files onto applications running as Admin because Explorer is not running as Admin. An application with a lower integrity (Standard user) level cannot talk to an application with a higher integrity level (Admin user). You either have to open the files though the applications "Open" menu, or do not edit the file when it is in a protected directory (Program Files).
My System SpecsSystem Spec
02 Oct 2010   #7
1nfected

Windows 7 Enterprise x64
 
 

So any solution to this other than using the 'Open' menu of the particular app?
Would giving explorer admin previleges do any good? Even if it does, is it advisable?
Infact, is it advisable to give ANY app admin previleges?
My System SpecsSystem Spec
02 Oct 2010   #8
logicearth

Windows 10 Pro (x64)
 
 

Quote   Quote: Originally Posted by 1nfected View Post
Would giving explorer admin previleges do any good? Even if it does, is it advisable?
Not advisable.

Quote:
Infact, is it advisable to give ANY app admin previleges?
Only when its required. Giving an application Admin privileges gives it power over your whole computer, this should be avoided especially for anything that is connected to the internet.

But for me the best solution is to never work in system locations like "Program Files" either move them to your desktop for quick edits or create a repository in a user owned location (Your User folder, for example) for your work. Then if need be using junctions or symlink the files in Program Files from your repository.
My System SpecsSystem Spec
02 Oct 2010   #9
1nfected

Windows 7 Enterprise x64
 
 

Thanks for the explanation logicearth.
I tried givin explorer.exe admin right in the mean while, but didn't succeed.

Anyways, i've moved the files to a diff location, so no worries.
My System SpecsSystem Spec
Reply

 Issues with running applications with Admin Privilege




Thread Tools






Similar help and support threads
Thread Forum
Internet Download Manager Admin Privilege
Just now i installed IDM, on my dedicated server. Now when i am opening IDM, I am getting the message that "you are running IDM with admin privileges. IDM wont be able to take over downloads from browser in this mode. So i went to the installation folder, there i checked properties of ...
Software
Administrator Account/Privilege Issues
I have a problem, I recently bought used laptop with the Windows Seven operating system installed. Also, it came with two accounts + default admin and guest. One account I do not have access to, and one standard user account. I want to install, and I can not do this with the standard user...
General Discussion
DL'ed programs (ie Firefox) won't install/update w/out admin privilege
I have Win7 x64 and I'm the only one using this computer! My user account has admin privileges, and I've never set up any other accounts! I'm not sure what changed, I haven't made any major changes to my computer recently, but all of a sudden a month or two ago, I can no longer install many...
Software
Visual BCD Editor wont run with the Admin Privilege it asks for.
Visual BCD Editor demands the user runs the program with Admin Privileges. I cannot get it to run with UAC on, no matter how I try to assign it Admin Privileges. I have followed all the advice in this thread. http://www.sevenforums.com/tutorials/11841-run-administrator.html I have the...
Software
External HDD Security Privilege Issues
Hi, I have an external HDD, and since a few weeks ago its been have really weird security problems. When I plug it into a computer, and I try to access any of its contents, I get a warning: The only way I can possible access these files is using 'Take Ownership', but I don't have access...
Hardware & Devices
Windows 7 Not Running Applications
Sorry I did not know where else to post this but this problem started last night I restarted my computer and now it wont running applications. And by that I mean any exe file that doesn't require and installation. What I can do is run installers and and then run the program but I have programs that...
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 18:27.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App