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

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

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

Windows7 64bit
 
 

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


08 Feb 2014   #4

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

Windows 7 Home Premium
 
 
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

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 Windows 7
 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

Windows 7 Home Premium
 
 
Permissions

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

Cannot modify files as Administrator in Windows 7-advanced-security-settings-en-us.jpg

Then edit permisssions

Name:  Advanced Security Settings for en-US 2.jpg
Views: 16
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

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

Windows 7 Home Premium
 
 
Change owner to trusted installer

My System SpecsSystem Spec
09 Feb 2014   #10

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 for2: Cannot modify files as Administrator in Windows 7
Thread Forum
I need a Windows file explorer that can view/modify FTP files? Software
Cannot delete edit modify rename or alter files in any way!?!?!? General Discussion
Don't have permission to modify files in this network BSOD Help and Support
No permission to modify files bug/weirdness General Discussion
Problem to modify authorization of "Program Files (x86) 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 12:53 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