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: Cannot modify files as Administrator in Windows 7

08 Feb 2014   #1
upiter77

Windows7 64bit
 
 
Cannot modify files as Administrator in Windows 7

hi

I cannot modify files as a real Administrator in Windows 7:

http://www.techrepublic.com/blog/win...indows-7/3656/

for example I cannot change this file:

C:\Program Files\Windows Sidebar\Gadgets\CPU.Gadget\en-US\cpu.html.

Even cannot save this file if I open in notepad as Administrator.


My System SpecsSystem Spec
.
08 Feb 2014   #2
upiter77

Windows7 64bit
 
 

I will try to turn UAC of user Administrator off:

Turning User Account Control on or off - Microsoft Windows Help
My System SpecsSystem Spec
08 Feb 2014   #3
upiter77

Windows7 64bit
 
 

I have turned UAC off, but it still doesn't work.
My System SpecsSystem Spec
.

08 Feb 2014   #4
richnrockville

Windows 7 Pro x64 SP1
 
 

Check for the possibility of the file being listed as a system file, from an elevated prompt. type attrib filename.

you might want to change the attributes and then resave it, change the attributes back after saving your changes.

Rich
My System SpecsSystem Spec
08 Feb 2014   #5
Callender

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 
take ownership

I tried to edit and save the file - "Access Denied"

Took ownership (changed permissions) and could edit and save.

Afterwards I changed everything back to how it was originally!
My System SpecsSystem Spec
08 Feb 2014   #6
upiter77

Windows7 64bit
 
 

I have treid and it doesn't work:

Zugriff verweigert -> access denied
Code:
C:\Users\Administrator.asus>cd "C:\Program Files\Windows Sidebar\Gadgets\CPU.Gadget\de-DE\"

C:\Program Files\Windows Sidebar\Gadgets\CPU.Gadget\de-DE>dir
 Datenträger in Laufwerk C: ist Win7
 Volumeseriennummer: 8491-98C4

 Verzeichnis von C:\Program Files\Windows Sidebar\Gadgets\CPU.Gadget\de-DE

13.07.2011  20:21    <DIR>          .
13.07.2011  20:21    <DIR>          ..
14.07.2009  04:03             4'630 cpu.html
13.07.2011  20:21    <DIR>          css
14.07.2009  03:58             1'020 gadget.xml
13.07.2011  20:21    <DIR>          js
               2 Datei(en),          5'650 Bytes
               4 Verzeichnis(se), 310'644'457'472 Bytes frei

C:\Program Files\Windows Sidebar\Gadgets\CPU.Gadget\de-DE>attrib cpu.html
A            C:\Program Files\Windows Sidebar\Gadgets\CPU.Gadget\de-DE\cpu.html

C:\Program Files\Windows Sidebar\Gadgets\CPU.Gadget\de-DE>attrib -r +s cpu.html
Zugriff verweigert - C:\Program Files\Windows Sidebar\Gadgets\CPU.Gadget\de-DE\cpu.html

C:\Program Files\Windows Sidebar\Gadgets\CPU.Gadget\de-DE>attrib -r -s cpu.html
Zugriff verweigert - C:\Program Files\Windows Sidebar\Gadgets\CPU.Gadget\de-DE\cpu.html

C:\Program Files\Windows Sidebar\Gadgets\CPU.Gadget\de-DE>attrib +S +H cpu.html /s /d
Zugriff verweigert - C:\Program Files\Windows Sidebar\Gadgets\CPU.Gadget\de-DE\cpu.html
My System SpecsSystem Spec
09 Feb 2014   #7
Callender

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

Try changing permissions. Change owner to PC Administrators or Username for your account.

-advanced-security-settings-en-us.jpg

Then edit permisssions

Name:  Advanced Security Settings for en-US 2.jpg
Views: 24
Size:  100.1 KB

If you get really stuck just use the ICACLS or CACLS command.

Example:

icacls "C:\Program Files\Windows Sidebar\Gadgets\CPU.Gadget" /grant Username:F

cacls "C:\Program Files\Windows Sidebar\Gadgets\CPU.Gadget\de-DE\cpu.html" /grant Username:F

[EDIT]: I'm forgetting that gadgets are disabled on my machine. That's probably why I can edit the file. I reckon that you need to disable the gadget before you can make changes. Just start it again afterwards. See the tutorial here:

Gadgets - Enable or Disable


My System SpecsSystem Spec
09 Feb 2014   #8
upiter77

Windows7 64bit
 
 

Thx a lot, it works well now, but now howto change the owner back to TrustedInstaller?
My System SpecsSystem Spec
09 Feb 2014   #9
Callender

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 
Change owner to trusted installer

My System SpecsSystem Spec
09 Feb 2014   #10
upiter77

Windows7 64bit
 
 

Quote   Quote: Originally Posted by Callender View Post
Thx, it works well now.
My System SpecsSystem Spec
Reply

 Cannot modify files as Administrator in Windows 7




Thread Tools




Similar help and support threads
Thread Forum
how to modify folder view details for music files?
Good afternoon everyone, Here is the problem. I am trying to get a standard view for the files under 'My Music' and all subfolders. Does not seem to work. Let us take an example: In the My Music\classical\ subfolder all the subfolders below that are artists names and the files may consist of...
General Discussion
I need a Windows file explorer that can view/modify FTP files?
Hi everyone, I recently setup an FTP server using this genius little piece of hardware called CloudFTP (now called iUSBport as of today, LOL). Anyways, I can access my CloudFTP just fine through my smartphone, using a file explorer app w/FTP ability. My question is, is there a downloadable...
Software
Can't run exe files as administrator
I can't run application exes even when I right-click and run as administrator. It says "Windows cannot access the specified file or path. You may not have the appropriate permissions."
General Discussion
Cannot delete edit modify rename or alter files in any way!?!?!?
i am enraged, i have been having this problem for a bit, i disabled uac, i gave my user account full access permissions on all files and it still says i dont have permission, my hard drive is almost full now and i cannot delete stuff so i just wanna lay into microsoft with the force of 1000 suns ...
General Discussion
Don't have permission to modify files in this network
About four out of five times when I try to save a file from any program (I see it with Firefox and Photoshop the most because I use both programs often), I get the message: You don't have permission to modify files in this network location. Contact the administrator per permission to make these...
BSOD Help and Support
Problem to modify authorization of "Program Files (x86)
Hello everybody ! :D As I said before, it is difficult to speak correctly in English. I'm sorry. I'll try to explain a problem related by one of members of my forum. I can't test on my PC because I use a 32 bits version of Windows 7 who not contains the folder that he want's to modify. OS...
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 23:30.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App