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: Open Windows Explorer with Admin rights


20 Feb 2012   #1

Windows 7 Enterprise x64
 
 
Open Windows Explorer with Admin rights

Hi there,

I have the following scenario:
- Windows 7
- User Account Control UAC enabled (level 3 out of 4)
- User account is member of the Administrator's group

I open the Windows Explorer and want to change an .ini file located in the C:\Program Files (x86)\... folder. The file always opens as read-only. This is because Windows Explorer is started with normal user rights (not admin rights).

How can I start the Windows Explorer with admin rights (without changing the UAC settings)? Or is there a user-friendly way of changing contents of files located under protected folders? The only way I found until now is: Open Notepad with elevated rights and open the .ini file from there.

My System SpecsSystem Spec
.

20 Feb 2012   #2

Microsoft Windows 8.1 Pro 64-bit
 
 

uidl,

Right click the program and click "Run as Administrator".

This goes for near anything
My System SpecsSystem Spec
20 Feb 2012   #3

Windows 7 Enterprise x64
 
 

Well, it doesn't work when opening .ini files. There is no "Run as" when opening .ini files.
My System SpecsSystem Spec
.


20 Feb 2012   #4

Microsoft Windows 8.1 Pro 64-bit
 
 

If you were to do this to the explorer window before you opened it? I am supposing this doesn't work?
My System SpecsSystem Spec
20 Feb 2012   #5

Windows 7 Enterprise x64
 
 

There is also no "Run as" function for the Windows Explorer.
My System SpecsSystem Spec
20 Feb 2012   #6

Microsoft Windows 8.1 Pro 64-bit
 
 

Interestingly enough, when I right click the wording of "Windows Explorer", I only get "Properties", but when I right click its icon, I get the "Run as Administrator" option
Does this help? You would need to navigate to the location of the file.
Also, holding Ctrl+Shift and left clicking it should do the same thing
My System SpecsSystem Spec
20 Feb 2012   #7

Windows 7 Enterprise x64
 
 

All right, right click and "Run as Administrator" opens the Windows Explorer with admin rights. That works fine until here.
But still, when I open the .ini file located under the Program Files folder, the file opens in read-only mode. I mean, Notepad is still opening with standard user rights.
My System SpecsSystem Spec
20 Feb 2012   #8

Microsoft Windows 8.1 Pro 64-bit
 
 

Perhaps we are going about this all wrong. Right click the .ini file and select the security tab. Click the first edit (to change permissions). Select your user account name from the list, and if it doesn't have full control, give it full control:
Name:  Capture.PNG
Views: 105
Size:  99.0 KB

Let me know if you are unable to change its permissions

Just an added precaution, make sure you know what you are doing in modifying this file (I don't know what it is or what its for, but this is all up to you).

PS. can anyone find out what my user account name is? lol... nevermind


My System SpecsSystem Spec
20 Feb 2012   #9

Windows 7 Enterprise x64
 
 

Thanks for the tip. What we want to change is an .ini file of a 3rd party app. We are trying new features, so there is no need to worry about editing the file.
But this is going into the wrong direction. I mean, even if changing the permissions would work, this is still way too complicated. I assume that would work, but isn't there any easy way of editing files under Program Files? Like it used to be in Windows XP: just open Windows Explorer with adminrights, browse to the needed location, open the file, change it and simply save?
My System SpecsSystem Spec
20 Feb 2012   #10

Microsoft Windows 8.1 Pro 64-bit
 
 

Well, I just may not be aware of it, but it doesn't mean it isn't possible. Someone else may know of such a way. It may be harder for you if you want to keep the UAC settings on. I would recommend turning it off when you need to. It is as easy as typing "uac" without quotes into the start search, clicking the program, and moving a slider a few points.

Windows 7 and XP are definately different. Perhaps they were trying to make Windows 7 a little bit more secure. Win some features, and lose some.

I am out of ideas, but I am not the only person here. Someone else may have some knowledge on this area.
My System SpecsSystem Spec
Reply

 Open Windows Explorer with Admin rights




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 06:05 PM.
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