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: Access denied when editing .ini files

27 Dec 2011   #1
pjfarr

Microsoft Windows 7 Home Premium 32-bit 7601 Multiprocessor Free Service Pack 1
 
 
Access denied when editing .ini files

All of a sudden when I'm trying to save an edited .ini file in a program folder (in C:\Program Files) I get blocked by an Access Denied message. First, on making the changes in the .ini using Notepad and then clicking File > Save, I get the "Save As" dialog instead. But even then when I click Save it will say I don't have permission to save in this location and to contact an administrator (which is me).

I have edited these same files in these same locations dozens of times without a problem before. This is something new that starting just this morning. System restore didn't help.

Anyone have any experience with this sort of thing?


My System SpecsSystem Spec
.

27 Dec 2011   #2
pbcopter

Windows 7 Ultimate x64 SP1, Windows 8.1 Pro x64
 
 

Open notepad at an elevated level (right click on notepad and select Run as administrator)
Then import the file you are editing, edit and then save.
My System SpecsSystem Spec
27 Dec 2011   #3
pjfarr

Microsoft Windows 7 Home Premium 32-bit 7601 Multiprocessor Free Service Pack 1
 
 

Yes, that does work. Also copying the file to the desktop, editing, saving and moving it back works. However, I didn't have to do any of that before. I could change and save the file directly in its native folder. Something has changed in my security settings apparently. I would like to sleuth it out if possible.
My System SpecsSystem Spec
.


27 Dec 2011   #4
pbcopter

Windows 7 Ultimate x64 SP1, Windows 8.1 Pro x64
 
 

In all my Windows 7 systems, notepad cannot save to any system folder without running elevated.
If it worked for you before, then something had changed from the default permissions.
My System SpecsSystem Spec
28 Dec 2011   #5
pjfarr

Microsoft Windows 7 Home Premium 32-bit 7601 Multiprocessor Free Service Pack 1
 
 

I think I've managed to tie it to the UAC settings, with a little more investigation.

I turned off UAC a long time ago. Within the first 24 hours of test driving W7, actually. I went from XP to 7, skipping Vista, so a hadn't been initiated into the constant warnings and permission issues. I'm more of an advanced user, not an expert exactly, but I do a lot of tweaking. Having to click 4 times to delete something from the Start Menu? Seriously? (Right-click > delete > "Are you sure?" > "Yes" > "You need administrator privileges to make this change. Click 'continue' to complete the action' > "Continue"). Yeah, UAC was disabled pretty quickly.

Anyway, in delving deeper into this particular issue, I checked the UAC setting to see if it had mysteriously reasserted itself (in that way Windows has of doing things like that). It was still off. I turned it on again, then off, then rebooted and I'm now able to edit and save any .ini's in their native folders once again without any hassle.
My System SpecsSystem Spec
28 Dec 2011   #6
Kari

Microsoft Community Contributor Award Recipient

Windows 8.1 Pro with Media Center
 
 

Quote   Quote: Originally Posted by pbcopter View Post
In all my Windows 7 systems, notepad cannot save to any system folder without running elevated.
If it worked for you before, then something had changed from the default permissions.
Correct. By default, UAC prevents user to save to system folders. Simple workaround is to run apps elevated as already mentioned in this thread, for instance opening Notepad elevated when files in Windows folder must be edited, or opening 7-Zip elevated if a zipped file must be extracted to Program Fileds folder.

Kari
My System SpecsSystem Spec
Reply

 Access denied when editing .ini files




Thread Tools





Similar help and support threads
Thread Forum
Access denied editing text files to root C drive
I thought i had all my permissions and sharing done correctly until i tried to edit a text file across my network on another windows 7 machine. When i go to save the file it ask me "save as" which it never did while trying to do the same thing on a windows xp machine. Well after the save as i try...
General Discussion
Access Denied to my own files...
I am in a programming class in college using C#, and have the project stored on a network drive the college gives students access to. From my laptop I can access it through FTP just fine. I downloaded the files (A Visual Studio 2010 workspace using C#) and it opened in Visual Studio just fine......
Network & Sharing
get access denied when i try to download files
hi i get this all the time can any one help me out really help here's a pic of it. and ya i'm computer admin BTW and i cant seem to do any thing about it.
Network & Sharing
Access is denied, Trying to recover files from .wim image
Hi all, I've been searching for answers the past few days... I have successfully mounted a .wim recovery file, and I can access the folders etc. through Explorer. My problem is: The directories I need to access to recover files (like Users\Default user) gives me a "Access is denied" message. I...
Backup and Restore
can't copy old windows files...access denied
hey guys. i installed windows 7 pro x64 recently. i'm in the process of copying my own old windows xp files, as well as copying the backed up windows xp files from my friend's installation that were in my old hard drive. i've been battling windows 7 with permissions left and right to copy the...
General Discussion
all my files are access denied
can anyone help me... all my files are access denied even im the admin. tnx!
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:37.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App