Resetting NTFS Files Security and Permission in Windows 7 _ Lallous' Lab

29
10/5/13 Resetting NTFS files security and permission in Windows 7 | lallous' lab lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/ 1/29 lallous' lab Resetting NTFS files security and permission in Windows 7 June 14, 2009 at 8:59 am · Filed under The Lab , Tips and Tricks ·Tagged access control list , access denied , acls , attributes , broken , clear permission , damaged , external , external harddisk , file permission , file security , hard disk , linux , ntfs , permission , reset , windows 7 , windows 7 rc , windows 8 , windows 8.1 , windows blue Resetting NTFS files security and permission on Windows 7 RC =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= I was running Vista with two NTFS partitions (OS and DATA), then formatted first partition and install Windows 7 RC. The second partition (DATA) had some security settings on some files and folders. After Win 7 was installed, some files on drive D were not accessible anymore and I was getting “Access Denied” I tried to right-click on the folders that were not accessible and changed their owner and changed permissions but still some folders were still inaccessible not matter what I did. Just before giving up, I remembered that since Windows NT, there was a tool named “cacls” that allows one to display or change ACLs (access control lists). Ok, to make a long story short, on Windows 7 it is called “icalcs”. So to reset files permissions: 1. Run “cmd” as Administrator 2. Go to the drive or folder in question, for example: CD /D D: 3. To reset all the files permissions, type: icacls * /T /Q /C /RESET 4. And that’s it! After that, the file’s permissions were reset and I could access them back again. cacls is a handy tool to change permissions of files en-mass. Reference: http://support.microsoft.com/kb/318754 U PDATE: I have released a new graphical user interface utility to reset the files permissions. Try it out.

description

Resetting NTFS Files Security and Permission in Windows 7 _ Lallous' Lab

Transcript of Resetting NTFS Files Security and Permission in Windows 7 _ Lallous' Lab

Page 1: Resetting NTFS Files Security and Permission in Windows 7 _ Lallous' Lab

10/5/13 Resetting NTFS files security and permission in Windows 7 | lallous' lab

lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/ 1/29

lallous' lab

Resetting NTFS files security and permission inWindows 7

June 14, 2009 at 8:59 am · Filed under The Lab, Tips and Tricks ·Tagged access control list, accessdenied, acls, attributes, broken, clear permission, damaged, external, external harddisk, file

permission, file security, hard disk, linux, ntfs, permission, reset, windows 7, windows 7 rc, windows8, windows 8.1, windows blue

Resetting NTFS files security and permission on Windows 7 RC=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=I was running Vista with two NTFS partitions (OS and DATA), then formatted first partition andinstall Windows 7 RC.The second partition (DATA) had some security settings on some files and folders.After Win 7 was installed, some files on drive D were not accessible anymore and I was getting“Access Denied”I tried to right-click on the folders that were not accessible and changed their owner and changedpermissions but still some folders were still inaccessible not matter what I did.Just before giving up, I remembered that since Windows NT, there was a tool named “cacls” thatallows one to display or change ACLs (access control lists).Ok, to make a long story short, on Windows 7 it is called “icalcs”.So to reset files permissions:

1. Run “cmd” as Administrator2. Go to the drive or folder in question, for example:CD /D D:3. To reset all the files permissions, type:icacls * /T /Q /C /RESET4. And that’s it!After that, the file’s permissions were reset and I could access them back again.cacls is a handy tool to change permissions of files en-mass.Reference: http://support.microsoft.com/kb/318754

UPDATE: I have released a new graphical user interface utility to reset the filespermissions. Try it out.

Page 2: Resetting NTFS Files Security and Permission in Windows 7 _ Lallous' Lab

10/5/13 Resetting NTFS files security and permission in Windows 7 | lallous' lab

lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/ 2/29

I was running Vista with two NTFS partitions (C: and D:), then formatted C: partition and installedWindows 7 RC.

The second partition (D:) had some files security set on files and folders.

After Win 7 was installed, some files on drive D: were not accessible anymore and I was getting“Access Denied”

I tried to right-click/properties on the folders that were not accessible and changed their owner andchanged permissions but still some folders were still inaccessible not matter what I did.

After some research, it turned out the tool “cacls” that allows one to display or change ACLs (accesscontrol lists) can help to reset ACLs.

In Windows 7 it is called “icalcs”. To reset files permissions:

1. Run “cmd” as Administrator

2. Go to the drive or folder in question, for example:

CD /D D:

3. To reset all the files permissions, type:

icacls * /T /Q /C /RESET

4. And that’s it!

After that, the files permissions were reset and I could access them back again.

Update:

It is possible that “icacls” might fail. For that try to take ownership of the files first.

Just before Step (3), please type the following command:

takeown /R /F *

cacls is a handy tool to change permissions of files “en masse”.

Reference: http://support.microsoft.com/kb/318754

Please support my efforts and time put into writing entries and maintaining this blog by donatingmoney through Paypal:

Thank you.

Permalink

Page 3: Resetting NTFS Files Security and Permission in Windows 7 _ Lallous' Lab

10/5/13 Resetting NTFS files security and permission in Windows 7 | lallous' lab

lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/ 3/29

112 Comments »

1. treoo0 said

December 31, 2009 @ 11:37 pmFantastic!! Thank you so very much for sharing. I messed-up my permissions and this did thetrick.

Reply

2. alireza said

January 29, 2010 @ 2:42 pmi did this but it didn’t work because i got access denied on all files in my D drive

Reply

yonester said

March 9, 2010 @ 5:01 amBefore running this command, do the following:

1. Right click on the folder in question then choose Properties2. Select the Security tab.3. Click the Advanced button.4. Select the Owner tab.5. Click Edit6. Select your user name and check the box marked Replace owner on subcontainers andobjects.7. Click OK

Now you should be able to run the command mentioned in this article successfully.

Reply

Frederick II said

October 20, 2011 @ 10:36 pm

Page 4: Resetting NTFS Files Security and Permission in Windows 7 _ Lallous' Lab

10/5/13 Resetting NTFS files security and permission in Windows 7 | lallous' lab

lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/ 4/29

Thanks! This did the trick for me!

Stan said

March 4, 2012 @ 12:07 amDude! Awesome! This is what finally worked for me. I have spent hours over days tryingto fix this and only by doing your method did it work for me. Gracias…

Web said

April 15, 2012 @ 1:56 amyes!! it finally worked after hours of web searching. that was immensely helpful and didthe trick. thank you!

Mostafa Zare said

November 6, 2012 @ 8:50 amTanx a million. I were loosing all my photos and videos! it helped me:)

raheel said

February 26, 2013 @ 6:13 pmthx sir i full day up said for thiz problam thank u

paliB said

August 24, 2013 @ 2:27 pmAnd that can I do when I am missing Security tab?

lallousx86 said

Page 5: Resetting NTFS Files Security and Permission in Windows 7 _ Lallous' Lab

10/5/13 Resetting NTFS files security and permission in Windows 7 | lallous' lab

lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/ 5/29

August 25, 2013 @ 12:18 amTry to type first:

takeown /r /f *

Then proceed as normal.

3. Jonny said

February 12, 2010 @ 5:14 pmLikewise, even running from safe mode cmd prompt as administrator I got access denied on allfiles and folders even though I know I’m owner with full permissions on many of the folders Itried. Any thoughts?

Reply

lallousx86 said

February 12, 2010 @ 5:52 pm@alrieza, Jonny: I would suggest trying to run cmd as system account then trying to reset thepermissions.

You need PsExec tool.

This link might help: http://windowsitpro.com/article/articleid/47673/how-can-i-start-a-process-or-program-as-the-local-system-account.html

Reply

GuestUser said

April 11, 2011 @ 5:38 amWindowsITPro link broken, here is new linky

http://www.windowsitpro.com/article/permissions/how-can-i-start-a-process-or-program-as-the-local-system-account-

4. Juan said

February 27, 2010 @ 9:55 pm

Page 6: Resetting NTFS Files Security and Permission in Windows 7 _ Lallous' Lab

10/5/13 Resetting NTFS files security and permission in Windows 7 | lallous' lab

lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/ 6/29

recomend to do this in windows repair environment worked like a charm it didnt work in safemnode for me neither

Reply

5. r1e1z1a said

May 7, 2010 @ 2:17 pm

thanks for this post !It solved my problem

Reply

6. Kutbi Nahar said

June 11, 2010 @ 1:01 pmhuh amazing

thanks alot solved 100 problems of mine !!!

i tried FIXIT from microsoft Not workes but this worked like a charm

with regardsKutub

Reply

7. GCG said

July 2, 2010 @ 1:22 amHey I just wanna say thanks a lot for this fix it helped me after I tried to restrict access to theGuest account and messed up the permissions. This system is so convoluted!

Reply

8. Türkh Web Tasarım said

August 3, 2010 @ 11:27 amLikewise, even running from safe mode cmd prompt as administrator I got access denied on allfiles and folders even though I know I’m owner with full permissions on many of the folders Itried

Page 7: Resetting NTFS Files Security and Permission in Windows 7 _ Lallous' Lab

10/5/13 Resetting NTFS files security and permission in Windows 7 | lallous' lab

lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/ 7/29

Reply

9. James Swift said

September 14, 2010 @ 7:36 amI want to change the permissions on the users folder in windows 7 back to the defualts. When Itry this however, it gives access denied and also that “the system cannot find the path specified”.I am the owner and have administrator rights.

I have played around with the permissions and think I messed something up. Now my backupprogram, syncback, runs into the infinite application data loop on the defualt folder in the usersfolder.

Reply

10. woomera said

September 28, 2010 @ 4:17 pmthanks alot for this. its been a week ive had problem with my flash drive and even no oneresponded to my problem at MSFN.org forum. until i came across this tutorial.thank you

Reply

11. Gabriel Labbad said

November 23, 2010 @ 8:33 amhi-five! -Gabriel Labbad

Reply

12. Alex said

November 30, 2010 @ 1:29 pmThanks for this tip i had the same Problem and i didn´t found a help on german sites only thistip i can use now my files.

Reply

13. Black_Raven said

Page 8: Resetting NTFS Files Security and Permission in Windows 7 _ Lallous' Lab

10/5/13 Resetting NTFS files security and permission in Windows 7 | lallous' lab

lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/ 8/29

December 5, 2010 @ 7:41 amthanks! you’re a lifesaver!

Reply

14. Richard M Rimmer said

December 21, 2010 @ 8:35 amThanks for this remarkable command. Everyone should bookmark this page and copy thecommand. I just got back my Outlook 2007! It started goofing off after a backup recovery.These are my files, it’s ridiculous.

Reply

15. toxy said

December 23, 2010 @ 5:26 pmThanks for this info, helped me fix windows’ bullcrap settings.

Reply

16. Gabby said

January 1, 2011 @ 11:56 amYahh yhaa bla blaall this show sucsess but if trying to change folder Atribute NOTING WORKI START GIVING UP STUPED WINDOW

Reply

17. HC said

January 8, 2011 @ 10:03 pmThanks very much for this post.To make this work, I had to boot into recovery mode by pressing F8 after the BIOS screen. Itwouldn’t work inside Windows. B also made a system image of my hard drive, in case Windowsstopped working.Like “GCG”, I had tried to restrict access to my files from the Guest account (not that I hadanything to hide). Although I still could access the files, my virus scanner didn’t scan them,

Page 9: Resetting NTFS Files Security and Permission in Windows 7 _ Lallous' Lab

10/5/13 Resetting NTFS files security and permission in Windows 7 | lallous' lab

lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/ 9/29

saying “Locked file. Not tested”, so I wanted to reset the permissions. Now I have resetted themand the virus scanner is now able to scan them.Once again, thanks very much.

Reply

18. Windows 7 Tricks and Tips said

February 11, 2011 @ 12:51 pmGood find!Refer http://support.microsoft.com/kb/135268 for XP

Reply

19. tabela said

March 16, 2011 @ 10:02 pmthanks very good site

Reply

20. lallousx86 said

March 17, 2011 @ 1:18 pmThank you guys for your wonderful and encouraging comments!

Reply

21. Tavi said

April 9, 2011 @ 7:01 pmcool ! thanks a lot!

Reply

22. Jeff said

May 14, 2011 @ 2:44 pm…saved my bacon as well. Much obliged!

Page 10: Resetting NTFS Files Security and Permission in Windows 7 _ Lallous' Lab

10/5/13 Resetting NTFS files security and permission in Windows 7 | lallous' lab

lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/ 10/29

Reply

23. timoboehmek said

June 14, 2011 @ 5:28 pmXcacls is no more available for download. Can someone send it to me, please?

Reply

lallousx86 said

September 16, 2011 @ 3:00 pmXcacls if you’re using XP. for Win7, use icacls.

Still, you can download Xcacls:

http://www.microsoft.com/download/en/details.aspx?amp;DisplayLang=en&id=19419

Reply

24. lallousx86 said

June 14, 2011 @ 5:30 pmWhy do you need Xcacls? Use ‘icacls’ instead.

Reply

25. Daniel Lichtenberger said

June 20, 2011 @ 8:15 pmThanks a lot. This was driving me crazy…

Reply

26. Bharat Bharija said

July 11, 2011 @ 7:34 pmThank you !!!!thanks a lot.. you just saved my precious memories of last 5 years…

Page 11: Resetting NTFS Files Security and Permission in Windows 7 _ Lallous' Lab

10/5/13 Resetting NTFS files security and permission in Windows 7 | lallous' lab

lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/ 11/29

god bless you !!

Reply

27. mendel said

July 28, 2011 @ 11:42 pmnice one! you fixed my ksod!

Reply

28. Jen'ari Lunax said

August 6, 2011 @ 6:17 pminstall things as standard user… the app cant write to the programs folder :/install things as admin… app worksre-log into standard user and no access to the appre-log into admin and give permisions..re-log into standard user user runn app… works for a bitthe app trys to update or makes update and now updated parts are inaccessable to standard user:/

give ownership of intire drive to everyone and everything works…

sucks that windodos attempted to use linux/gnu security and search styles and didnt get itright…

Reply

29. Mick said

August 9, 2011 @ 3:01 amThanks heaps – this is exactly what I was looking for

Reply

30. xfphile said

August 9, 2011 @ 3:12 amOkay, I’m stumped.

1. Run “cmd” as Administrator

Page 12: Resetting NTFS Files Security and Permission in Windows 7 _ Lallous' Lab

10/5/13 Resetting NTFS files security and permission in Windows 7 | lallous' lab

lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/ 12/29

– This is fine.

2. Go to the drive or folder in question, for example:CD /D D:

– This is done. The folder is open.

3. To reset all the files permissions, type: icacls * /T /Q /C /RESET

– This is where I’m having a problem. I want to change permissions on My Music, My Pictures,and My Documents on my OS hard drive. Apparantly, I’m not seeing the correlation betweenthe folder in question and the command prompt to use. Can someone clarify this for me, since Ifail at command prompting?

Reply

lallousx86 said

August 9, 2011 @ 10:27 amHi xfphile.

For My documents, My Music and other user related files, change to:

2. cd /d %HOMEDRIVE%\%HOMEPATH%3. reset…..Hope that helps.

Reply

xfphile said

August 10, 2011 @ 3:09 amArgh!!! Apparantly, dealing with mortgages all day every day has made me stupid. Do Ido it one folder at a time? If so, can you show the actual command as I need to type it(with the icacls etc.) for My Music? I promise I’m normally smarter than this and swearon my Bible that I will (endeavor) to get it this time.

Sean Reeves said

September 16, 2011 @ 12:40 am@xfphile: if you’re still having issues, simply download the .BAT file I created, put inwhatever folder you wish to have modified, then run it ‘as administrator’.

Page 13: Resetting NTFS Files Security and Permission in Windows 7 _ Lallous' Lab

10/5/13 Resetting NTFS files security and permission in Windows 7 | lallous' lab

lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/ 13/29

So, you’d put the file inside each of the three folders you listed and run them. Depending onhow large each of those folders are, it could take a few seconds up to a few hours. I’ve hadicacls running in my 1TB drive for about an hour now.

My 1TB has been REALLY acting up after plugging it into Win7. Copying the locked folderstakes about 4 hours for 200GB on USB 3.0. Why? Couldn’t tell ya. I also have no idea how orwhy Win7 locked my iPod and deleted all my music from it. The music is still on my HDD,but I can’t access my pod via iTunes. It says I need to restore it. However, I’m in Iraq (goingback to the States soon, WOOHOO!) and the internet here SUCKS. The firmware requiredto restore the iPod is just over 1GB… it would literally takes weeks to download on thisconnection.

Anyway, I hope you resolved your issue, and if not, give the .BAT I made a try

Best Regards,

Sean ReevesSPC, USAArmorer NCO

Reply

Sean Reeves said

September 16, 2011 @ 12:43 amOh, forgot to mention that the .BAT is available from the link in my comment below.Haha, wouldn’t want you to get all discouraged since I didn’t leave the link in thiscomment.

31. Sean Reeves said

September 16, 2011 @ 12:29 amI am attempting to do this to a 1TB drive at the moment, I certainly hope it works. The (external)drive will allow me to copy the files with proper permissions, but shortly thereafter, the newlycreated files will be locked as well.

I have created a .BAT file that automatically does this process. If you don’t trust it, simply right-click the .BAT and select ‘Edit’ and you will see that aside of text, only the code from this articleis used. The file can be downloaded from http://www.enoctis.net/shared/Win7_File-Permissions.zip

Note that the above URL isn’t supposed to have any spaces, just in case WordPress decides tothrow any in there.

Hope this helps! And even more so, I hope the code helps me–I am SICK of this permission crap.

Page 14: Resetting NTFS Files Security and Permission in Windows 7 _ Lallous' Lab

10/5/13 Resetting NTFS files security and permission in Windows 7 | lallous' lab

lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/ 14/29

Best Regards,

Sean Reeves

Reply

32. Cyberloser said

September 16, 2011 @ 3:21 pmT Q C Invalid parameter. Now what???

Reply

33. Cyberloser said

September 16, 2011 @ 3:28 pmMaybe I typed it wrong. I’m trying to do this on the whole of my C:/Local Disc.

Reply

Sean Reeves said

September 16, 2011 @ 4:20 pmDownload the .BAT that I created to do this for you. All you do is place the .BAT in thedirectory that you wish to reset, then run it as an administrator. You can download it frommy site: http://www.enoctis.net/shared/Win7_File-Permissions.zip

If you don’t trust me, that’s OK–I understand. Simply right-click on the file and select ‘Edit’which will allow you to see the code. @echo means show text, @echo off means don’t showtext… aside of the text I added, a couple of CLS (clear screen) calls and pauses, it’s only thecode from this article. It works great!

Best Regards,

Sean Reeves

Reply

lallousx86 said

September 16, 2011 @ 4:23 pmThanks for the batch file Sean. It is simple and straight to the point.

Page 15: Resetting NTFS Files Security and Permission in Windows 7 _ Lallous' Lab

10/5/13 Resetting NTFS files security and permission in Windows 7 | lallous' lab

lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/ 15/29

34. Sean Reeves said

September 16, 2011 @ 4:25 pmBy the way, I used this for the ‘You do not have permission to access…’ error that is common onWin7 when opening files from XP/Vista. I can’t tell you how long it took because I went to sleep,but it was done when I awakened. I know it took longer than an hour on my 1TB external USB3.0 drive.

Again folks, if you’re having problems, use the .BAT file I made. You can’t go wrong!

http://www.enoctis.net/shared/Win7_File-Permissions.zip

I used it last night and my woes are gone. By the way, in the .BAT file I cited this blog since it’swhere I got the method; hope you don’t mind.

Reply

35. delwiv said

September 17, 2011 @ 1:51 amThanks for the tip, it helped me a lot!

Reply

36. Sean Reeves said

September 18, 2011 @ 9:39 amNote to everyone, I’ve been informed by Microsoft that icalcs shouldn’t be used on the drive withthe OS. I am still awaiting clarification about whether it’s not to be ran on the drive with the OS(at all) or simply not in system folders or directories containing system folders.

I’ll post back whenever I obtain this information.

Reply

37. Bob Broccoli said

October 4, 2011 @ 11:24 pmIt’s a sad day for me. Logging on to my Win 7 system, I found I had no task bar icons, nodesktop icons and no files in my start folders. Definitely not good!! Upon investigation, I foundthat the files and objects were there but hidden, and found that I could not unhide them. After

Page 16: Resetting NTFS Files Security and Permission in Windows 7 _ Lallous' Lab

10/5/13 Resetting NTFS files security and permission in Windows 7 | lallous' lab

lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/ 16/29

many hours of attempted to repair, I chose to rebuild my system. In order to save my data, sinceI am the only user on this desktop I bought a new 1TB drive, formatted and partitioned it, and“rolled” off all my data to the new HDD.

My problem is all the data on the new drive is in the same state, read only and hidden.

Since we are talking about 100,000 files, mostly images, docx and xls files, is there a way, usingtakeown and icals to set these files back to “factory” ownership and permissions. Is it as simpleas:

icacls * /T /Q /C /RESET

but what ARE those permissions and who would the owner be.Also what are the “standard” security characteristics.

bob

Reply

Myke said

October 7, 2011 @ 5:48 pmBob it sounds as if you have an infection on your computer. There are several worms outright now that mod your registry and hide your files. You’ll still need to change yourpermissions but you’ll have to get rid of the infections first. Also make sure you do not deleteyour temp files first or you will lose all of that.

Reply

38. Graham Ashby said

November 5, 2011 @ 8:13 pmAs somebody suggested, execute this from the command prompt available in the list of repairoptions available at boot, upon selecting the F8 option.This was the only way I could get it to reset the majority of permissions without complaining.Sure, it complained about a few, but they were simply paths which couldn’t complete andterminate during the process, and weren’t essential paths which would cause general permissionissues.

Reply

39. ahollier said

November 11, 2011 @ 1:21 pm

Page 17: Resetting NTFS Files Security and Permission in Windows 7 _ Lallous' Lab

10/5/13 Resetting NTFS files security and permission in Windows 7 | lallous' lab

lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/ 17/29

Just gotta say thanks! I didn’t want to do all the searching for the answers myself this time and agoogle search brought your page right up. And now my problem is solved, much appreciated.

Reply

lallousx86 said

May 28, 2012 @ 2:58 amGlad it worked!

Reply

40. Erkan said

December 12, 2011 @ 2:29 pmDear Lallous and Yonester,

You’re life saver !

Reply

41. Bill said

December 31, 2011 @ 12:02 pmThis worked for me. Thanks a ton!

Reply

42. Suddenly can’t access USB hard disk in Windows 7: how to

fix (reset permissions) | Welcome to Andrewblock.net said

January 11, 2012 @ 12:28 am[...] http://lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7… [...]

Reply

43. Unable to Change Windows Vista Read-Only Folder Attribute

said

Page 18: Resetting NTFS Files Security and Permission in Windows 7 _ Lallous' Lab

10/5/13 Resetting NTFS files security and permission in Windows 7 | lallous' lab

lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/ 18/29

April 14, 2012 @ 2:01 pm[...] Resetting NTFS files security and permission in Windows 7 Asked by TedPrz [...]

Reply

44. Simoon said

April 16, 2012 @ 8:21 pmThanks man! worked perfectly for me

Reply

45. jeancrosignani said

April 21, 2012 @ 3:17 amI had a problem installing Microsoft Office 2010, so searching the web I found this site:http://social.technet.microsoft.com/Forums/en/office2010/thread/649fb828-e34e-4ca2-b283-2124e6a8783aWhere they recommend typing these two commands:takeown /f C:\Windowscacls C:\Windows /G administrators:F

Well, I did it and… now I can’t open almost ANY program (Chrome, Firefox, Windows MediaPlayer, …). I have access to cmd and the Windows Explorer.

Do you think the solution you propose could help me restoring my OS?Thanks

Reply

46. no3gods said

May 10, 2012 @ 9:27 pmmuch thanks

Reply

47. izz said

May 27, 2012 @ 9:03 amNOT WORKING AT ALL. it said ACCESS DENIED at the back. what should i do?

Page 19: Resetting NTFS Files Security and Permission in Windows 7 _ Lallous' Lab

10/5/13 Resetting NTFS files security and permission in Windows 7 | lallous' lab

lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/ 19/29

Reply

lallousx86 said

May 28, 2012 @ 2:57 amizz, did you run the commands as admin?

Reply

48. lallousx86 said

May 28, 2012 @ 3:03 amMany thanks everyone for the feedback.

Reply

49. king said

June 9, 2012 @ 3:21 amI already did everything, ran it as admin but it says access denied. Im getting crazy in here.what do i do? need help.

Reply

50. BerthaJean said

June 10, 2012 @ 7:05 amWorked to fix my problem. Muchas gracias!

Reply

51. Kim said

June 12, 2012 @ 12:09 pmSuccessfully processed 9569 files; Failed processing 928 files. Access is denied. Error. Please Help

Reply

Page 20: Resetting NTFS Files Security and Permission in Windows 7 _ Lallous' Lab

10/5/13 Resetting NTFS files security and permission in Windows 7 | lallous' lab

lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/ 20/29

Jon said

July 6, 2012 @ 10:33 pmFor those who are getting the access denied error, you need ownership. I found that thequickest and easiest way to get around this is just to go into the properties of the drive inquestion (for example, your C drive) and take ownership of the drive in its entirety. This willalso give you ownership of everything in the drive, which will get rid of the access deniederror.

This would be risky, but since you’re resetting permissions and ownership anyway, this goesaway once you finish.

Reply

52. Afdhal Atiff Tan said

July 22, 2012 @ 11:35 amWow, thanks a lot!

Reply

Roger Lehman said

July 24, 2012 @ 7:31 pmAm trying but can’t find my USB drive (k)

Reply

Andy said

July 24, 2012 @ 9:59 pmAre you using “cd /d :” ?

53. Andy said

July 24, 2012 @ 9:58 pmFantastic thanks!! – This works on 2008 R2 aswell.

Page 21: Resetting NTFS Files Security and Permission in Windows 7 _ Lallous' Lab

10/5/13 Resetting NTFS files security and permission in Windows 7 | lallous' lab

lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/ 21/29

Reply

54. Angga said

August 31, 2012 @ 2:27 pmThanks you very much…..Thanks you very much…..Thanks you very much…..Thanks you very much…..Thanks you very much…..Thanks you very much…..Thanks you very much…..Thanks youvery much………….

Reply

55. chia said

September 14, 2012 @ 11:34 amdamn it just works!!!!

Reply

56. Manasa Majumdar said

September 23, 2012 @ 3:09 amI completely am in awe of this blog absolutely goingto need to put this on my bookmarks.

Reply

57. Jeff said

September 26, 2012 @ 3:31 amWhat can I say? THANKS! I’d completely screwed up my permissions in an attempt to write toa database via ASP. Eventually, my local computer server was FUBAR. Ran this script, now it’s

back to default settings. So I now can play with it, and if I screw it up again, I know how to getback to neutral.

Thanks guys.

Reply

Page 22: Resetting NTFS Files Security and Permission in Windows 7 _ Lallous' Lab

10/5/13 Resetting NTFS files security and permission in Windows 7 | lallous' lab

lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/ 22/29

58. liveDecent said

October 6, 2012 @ 12:59 pmlallousx86…. man u’re simply superb…!!!! thumbs up!!

Reply

59. Frank said

October 13, 2012 @ 12:52 pmThanks, this saved me a ton of time as I had accidentally messed up my main/drive C:permissions while messing around under a dual-boot environment.

Reply

60. PRatap said

November 4, 2012 @ 5:34 amGreat…. Really…. What a solution…

Reply

Nisha said

November 17, 2012 @ 9:16 pmI accidently denied all permissions to E: drive.When access denied massage appeared I did undo those security permissions.Now though I can access E: drive but all the folders and subfolders show that denial messageabd even if I undo the same security settings to each folder seperately still exe,zip, and othertype of files cant be excessed.I am using Windows 7 ultimate please help….

Reply

61. Windows 7 will not boot (Blank Screen) said

November 14, 2012 @ 9:20 am

[...] ACL's as far as I understand it is Access Control Lists. So maybe boot to a command prompt

Page 23: Resetting NTFS Files Security and Permission in Windows 7 _ Lallous' Lab

10/5/13 Resetting NTFS files security and permission in Windows 7 | lallous' lab

lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/ 23/29

[...] ACL's as far as I understand it is Access Control Lists. So maybe boot to a command promptand try:http://lallousx86.wordpress.com/2009…-in-windows-7/ [...]

Reply

62. windows 7 Installation disk said

December 25, 2012 @ 5:40 pmhi!,I really like your writing very a lot! percentage we communicate more about your poston AOL? I need an expert on this area to solve my problem.

Maybe that is you! Having a look forward to peer you.

Reply

63. rahul said

December 29, 2012 @ 5:07 pmThanks a lot mate..Really a great favour to me.

Reply

64. Li said

December 30, 2012 @ 2:15 pmHi there, Very interesting stuff. I’ve just tried to run the DOS command” icacls * /T /Q/ C /RESET” (without the quotes), as administrator, in Windows 7, and it says ….“icacls* not recognised as an internal or external command operable program or batch file”.That is a * (star) there isn’t it? And I tried it both with and without spaces between each ofthese…. /T/Q/C.So my Windows 7 operating system doesn’t recognise this as a command – could you helpplease? Thanks, Lip.s. I also tried your bat file in one of my folders but it didn’t change any permissions for me? Itwould save me about two days work if either of these worked – but they don’t work on my PC?

Reply

lallousx86 said

December 31, 2012 @ 8:51 pm

Page 24: Resetting NTFS Files Security and Permission in Windows 7 _ Lallous' Lab

10/5/13 Resetting NTFS files security and permission in Windows 7 | lallous' lab

lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/ 24/29

Hi Li,

Just type the following form an administrator command prompt:

icacls SPACE * SPACE /T SPACE /Q SPACE /C SPACE /RESET

Of course, remove the SPACE and put a space character by pressing the space bar on yourkeyboard.

This should work if you are using Windows 7 and above.

Reply

Kenya said

January 10, 2013 @ 4:44 amI have Windows 7 64 bit and did this on my c drive. When the command promptfinished, it said, “Successfully processed 2411. Failed to process 12510.” Why didn’t itreset all of the other files?

65. endometriosis bible violet protocol new said

January 10, 2013 @ 3:17 pmHi, I wish for to subscribe for this weblog to take most recent updates,so where can i do it please help.

Reply

66. ray ban outlet said

February 7, 2013 @ 3:58 pmHeya i’m for the primary time here. I found this board and I to find It really useful & it helpedme out much. I hope to offer one thing back and aid others like you helped me.

Reply

67. mac makeup uk said

February 23, 2013 @ 10:50 am

Hello, yes this article is genuinely good and I have learned lot of things from it regarding

Page 25: Resetting NTFS Files Security and Permission in Windows 7 _ Lallous' Lab

10/5/13 Resetting NTFS files security and permission in Windows 7 | lallous' lab

lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/ 25/29

Hello, yes this article is genuinely good and I have learned lot of things from it regardingblogging.thanks.

Reply

68. refurbished handbags said

February 24, 2013 @ 6:31 pmI’m not sure why but this blog is loading incredibly slow for me. Is anyone else having thisproblem or is it a issue on my end? I’ll check back later and seeif the problem still exists.

Reply

69. brac37 said

March 3, 2013 @ 9:13 pmThe solution does not what it claims to do. When I click on the desktop to make a new folder, theuac shield still comes up. This means that the security settings are still broken. The solutionclaims to fix this.

Reply

70. dRdoS7 said

March 11, 2013 @ 4:23 amHi,

You said: ‘In Windows 7 it is called “icalcs”.’

You meant: “icalcs”?

Missed it by that much!!

dRdoS7.

PS. Worked for me.

Reply

dRdoS7 said

Page 26: Resetting NTFS Files Security and Permission in Windows 7 _ Lallous' Lab

10/5/13 Resetting NTFS files security and permission in Windows 7 | lallous' lab

lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/ 26/29

March 11, 2013 @ 4:24 amNow I did it!! It’s “icacls”.

Reply

71. Resetting NTFS files security and permission in Windows 7 |

ntanvinh144289 said

March 20, 2013 @ 10:06 am[...] http://lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7… [...]

Reply

72. Flauschig Dev. Blog » Fixing NTFS Security Permissions

(Win 7/8) said

June 24, 2013 @ 9:52 am[…] Source: http://lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7… […]

Reply

73. webpage said

July 30, 2013 @ 9:43 amDo you mind if I quote a couple of your articles as longas I provide credit and sources back to your site? My blog site isin the very same area of interest as yours and my visitors would definitely benefit from some ofthe informationyou provide here. Please let me know if this ok with you.Cheers!

Reply

lallousx86 said

August 3, 2013 @ 11:07 pmWhat’s your blog’s address?

Page 27: Resetting NTFS Files Security and Permission in Windows 7 _ Lallous' Lab

10/5/13 Resetting NTFS files security and permission in Windows 7 | lallous' lab

lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/ 27/29

Reply

74. arad said

July 31, 2013 @ 11:41 ami use this trick but still donot access!!!help me please

“you don’t have the correct permission to access the file location”

Reply

lallousx86 said

August 2, 2013 @ 8:25 amDid you run as admin the command prompt?

Reply

arad said

August 5, 2013 @ 10:57 amyes.i Run cmd as an administrator.I test lots of way but still NO ANSWER

lallousx86 said

August 6, 2013 @ 8:30 pmTry to change ownership of the folder.

I don’t know the steps by heart but this is a rough idea:

1. right click on the folder2. properties3. security – tab4. advanced button5. Owner label -> “Change” to change the owner6. Add yourself as an owner and press Apply.

Then try again with the instructions in the blog?

Page 28: Resetting NTFS Files Security and Permission in Windows 7 _ Lallous' Lab

10/5/13 Resetting NTFS files security and permission in Windows 7 | lallous' lab

lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/ 28/29

75. Rustee said

August 8, 2013 @ 5:58 pmicacls SPACE * SPACE /T SPACE /Q SPACE /C SPACE /RESET

I run the above line in win 7 64 bit (as admin), and it does the scan, but shows …

Successfully processed 3918 files … Failed processing 12863 files

Can some one please offer advice on why this is happening??

Reply

lallousx86 said

August 9, 2013 @ 8:18 pmTry to change ownership of the folder.

I don’t know the steps by heart but this is a rough idea:

1. right click on the folder2. properties3. security – tab4. advanced button5. Owner label -> “Change” to change the owner6. Add yourself as an owner and press Apply.

Then try again with the instructions in the blog?

Reply

76. Resetting NTFS files permission in Windows – Graphical

Utility | lallous' lab said

August 26, 2013 @ 2:33 am[…] seems many people found the post entitled “Resetting NTFS files security and permission inWindows 7” very useful, however many were having problems executing the steps […]

Reply

77. cobra said

Page 29: Resetting NTFS Files Security and Permission in Windows 7 _ Lallous' Lab

10/5/13 Resetting NTFS files security and permission in Windows 7 | lallous' lab

lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/ 29/29

September 5, 2013 @ 4:44 pmThanks for the command, worked like a charm…if you run Windows 8 and your start menutiles disappear due to NTFS issues, use this command…brings everything back to the way itwas.Big ups for the share!!

Reply

78. Isaac said

September 15, 2013 @ 6:46 pmThis is great, thanks for the tip. When joining an existing machine to a new domain all the filepermissions seem to get messed up in Dropbox. This partially solved the problem and at least letme get access to the entire Dropbox directory again.

Reply

79. Best Golf Marrakesh said

September 18, 2013 @ 2:50 amThe last and final step is to go to the range and practice your swing for 30 minutes the go tothepractice green and puttfor ne hour. These are designed to help golfers play shots through the roughor sand. Whisk in flour, 1-teaspoon salt, sugar, and a fewgrinds of black pepper.

Reply

80. Намудрил с NTSF правами на папку | Dmitry-Bond said

September 26, 2013 @ 11:14 am[…] Потом подумал – может можно как-то иначе. И нашел как сбросить права доступа[…]

Reply

RSS (Really Simple Syndication) feed for comments on this post · TrackBack URI (UniformResource Identifier)

Blog at WordPress.com. · The Almost Spring Theme.