Beruflich Dokumente
Kultur Dokumente
lallous' lab
UPDATE: I have released a new graphical user interface utility to reset the files permissions. Try it out.
lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/
1/29
10/5/13
I was running Vista with two NTFS partitions (C: and D:), then formatted C: partition and installed Windows 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 and changed 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 (access control 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 thats 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 donating money through Paypal:
lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/
2/29
10/5/13
112 Comments
1.
treoo0 said
December 31, 2009 @ 11:37 pm Fantastic!! Thank you so very much for sharing. I messed-up my permissions and this did the trick. Reply
2.
alireza said
January 29, 2010 @ 2:42 pm i did this but it didnt work because i got access denied on all files in my D drive Reply
yonester said
March 9, 2010 @ 5:01 am Before running this command, do the following: 1. Right click on the folder in question then choose Properties 2. Select the Security tab. 3. Click the Advanced button. 4. Select the Owner tab. 5. Click Edit 6. Select your user name and check the box marked Replace owner on subcontainers and objects. 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
lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/ 3/29
10/5/13
Stan said
March 4, 2012 @ 12:07 am Dude! Awesome! This is what finally worked for me. I have spent hours over days trying to fix this and only by doing your method did it work for me. Gracias
Web said
April 15, 2012 @ 1:56 am yes!! it finally worked after hours of web searching. that was immensely helpful and did the trick. thank you!
raheel said
February 26, 2013 @ 6:13 pm thx sir i full day up said for thiz problam thank u
paliB said
August 24, 2013 @ 2:27 pm And that can I do when I am missing Security tab?
lallousx86 said
lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/
4/29
10/5/13
August 25, 2013 @ 12:18 am Try to type first: takeown /r /f * Then proceed as normal.
3.
Jonny said
February 12, 2010 @ 5:14 pm Likewise, even running from safe mode cmd prompt as administrator I got access denied on all files and folders even though I know Im owner with full permissions on many of the folders I tried. 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 the permissions. You need PsExec tool. This link might help: http://windowsitpro.com/article/articleid/47673/how-can-i-start-aprocess-or-program-as-the-local-system-account.html Reply
GuestUser said
April 11, 2011 @ 5:38 am WindowsITPro link broken, here is new linky http://www.windowsitpro.com/article/permissions/how-can-i-start-a-process-or-programas-the-local-system-account-
4.
Juan said
February 27, 2010 @ 9:55 pm
lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/
5/29
10/5/13
recomend to do this in windows repair environment worked like a charm it didnt work in safe mnode for me neither Reply
5.
r1e1z1a said
May 7, 2010 @ 2:17 pm thanks for this post ! It solved my problem Reply
6.
7.
GCG said
July 2, 2010 @ 1:22 am Hey I just wanna say thanks a lot for this fix it helped me after I tried to restrict access to the Guest account and messed up the permissions. This system is so convoluted! Reply
8.
lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/
6/29
10/5/13
Reply
9.
10.
woomera said
September 28, 2010 @ 4:17 pm thanks alot for this. its been a week ive had problem with my flash drive and even no one responded to my problem at MSFN.org forum. until i came across this tutorial. thank you Reply
11.
12.
Alex said
November 30, 2010 @ 1:29 pm Thanks for this tip i had the same Problem and i didnt found a help on german sites only this tip i can use now my files. Reply
13.
Black_Raven said
7/29
lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/
10/5/13
14.
15.
toxy said
December 23, 2010 @ 5:26 pm Thanks for this info, helped me fix windows bullcrap settings. Reply
16.
Gabby said
January 1, 2011 @ 11:56 am Yahh yhaa bla bla all this show sucsess but if trying to change folder Atribute NOTING WORK I START GIVING UP STUPED WINDOW Reply
17.
HC said
January 8, 2011 @ 10:03 pm Thanks very much for this post. To make this work, I had to boot into recovery mode by pressing F8 after the BIOS screen. It wouldnt work inside Windows. B also made a system image of my hard drive, in case Windows stopped working. Like GCG, I had tried to restrict access to my files from the Guest account (not that I had anything to hide). Although I still could access the files, my virus scanner didnt scan them,
lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/
8/29
10/5/13
saying Locked file. Not tested, so I wanted to reset the permissions. Now I have resetted them and the virus scanner is now able to scan them. Once again, thanks very much. Reply
18.
19.
tabela said
March 16, 2011 @ 10:02 pm thanks very good site Reply
20.
lallousx86 said
March 17, 2011 @ 1:18 pm Thank you guys for your wonderful and encouraging comments! Reply
21.
Tavi said
April 9, 2011 @ 7:01 pm cool ! thanks a lot! Reply
22.
Jeff said
May 14, 2011 @ 2:44 pm saved my bacon as well. Much obliged!
lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/
9/29
10/5/13
Reply
23.
timoboehmek said
June 14, 2011 @ 5:28 pm Xcacls is no more available for download. Can someone send it to me, please? Reply
lallousx86 said
September 16, 2011 @ 3:00 pm Xcacls if youre 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 pm Why do you need Xcacls? Use icacls instead. Reply
25.
26.
lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/
10/29
10/5/13
27.
mendel said
July 28, 2011 @ 11:42 pm nice one! you fixed my ksod! Reply
28.
29.
Mick said
August 9, 2011 @ 3:01 am Thanks heaps this is exactly what I was looking for Reply
30.
xfphile said
August 9, 2011 @ 3:12 am Okay, Im stumped. 1. Run cmd as Administrator
lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/
11/29
10/5/13
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 Im having a problem. I want to change permissions on My Music, My Pictures, and My Documents on my OS hard drive. Apparantly, Im not seeing the correlation between the folder in question and the command prompt to use. Can someone clarify this for me, since I fail at command prompting? Reply
lallousx86 said
August 9, 2011 @ 10:27 am Hi 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 am Argh!!! Apparantly, dealing with mortgages all day every day has made me stupid. Do I do 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 Im normally smarter than this and swear on my Bible that I will (endeavor) to get it this time.
10/5/13
So, youd put the file inside each of the three folders you listed and run them. Depending on how large each of those folders are, it could take a few seconds up to a few hours. Ive had icacls 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 folders takes about 4 hours for 200GB on USB 3.0. Why? Couldnt tell ya. I also have no idea how or why Win7 locked my iPod and deleted all my music from it. The music is still on my HDD, but I cant access my pod via iTunes. It says I need to restore it. However, Im in Iraq (going back to the States soon, WOOHOO!) and the internet here SUCKS. The firmware required to restore the iPod is just over 1GB it would literally takes weeks to download on this connection. Anyway, I hope you resolved your issue, and if not, give the .BAT I made a try Best Regards, Sean Reeves SPC, USA Armorer NCO Reply
31.
lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/
13/29
10/5/13
32.
Cyberloser said
September 16, 2011 @ 3:21 pm T Q C Invalid parameter. Now what??? Reply
33.
Cyberloser said
September 16, 2011 @ 3:28 pm Maybe I typed it wrong. Im trying to do this on the whole of my C:/Local Disc. Reply
lallousx86 said
September 16, 2011 @ 4:23 pm Thanks for the batch file Sean. It is simple and straight to the point.
lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/ 14/29
10/5/13
34.
35.
delwiv said
September 17, 2011 @ 1:51 am Thanks for the tip, it helped me a lot! Reply
36.
37.
lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/
15/29
10/5/13
many hours of attempted to repair, I chose to rebuild my system. In order to save my data, since I 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, using takeown and icals to set these files back to factory ownership and permissions. Is it as simple as: 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 pm Bob it sounds as if you have an infection on your computer. There are several worms out right now that mod your registry and hide your files. Youll still need to change your permissions but youll have to get rid of the infections first. Also make sure you do not delete your temp files first or you will lose all of that. Reply
38.
39.
ahollier said
November 11, 2011 @ 1:21 pm
lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/
16/29
10/5/13
Just gotta say thanks! I didnt want to do all the searching for the answers myself this time and a google search brought your page right up. And now my problem is solved, much appreciated. Reply
lallousx86 said
May 28, 2012 @ 2:58 am Glad it worked! Reply
40.
Erkan said
December 12, 2011 @ 2:29 pm Dear Lallous and Yonester, Youre life saver ! Reply
41.
Bill said
December 31, 2011 @ 12:02 pm This worked for me. Thanks a ton! Reply
42.
Suddenly cant 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-inwindows-7 [...] Reply
43.
lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/
10/5/13
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 pm Thanks man! worked perfectly for me Reply
45.
jeancrosignani said
April 21, 2012 @ 3:17 am I 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-b2832124e6a8783a Where they recommend typing these two commands: takeown /f C:\Windows cacls C:\Windows /G administrators:F Well, I did it and now I cant open almost ANY program (Chrome, Firefox, Windows Media Player, ). 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 pm much thanks Reply
47.
izz said
May 27, 2012 @ 9:03 am NOT WORKING AT ALL. it said ACCESS DENIED at the back. what should i do?
lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/
18/29
10/5/13
Reply
lallousx86 said
May 28, 2012 @ 2:57 am izz, did you run the commands as admin? Reply
48.
lallousx86 said
May 28, 2012 @ 3:03 am Many thanks everyone for the feedback. Reply
49.
king said
June 9, 2012 @ 3:21 am I 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 am Worked to fix my problem. Muchas gracias! Reply
51.
Kim said
June 12, 2012 @ 12:09 pm Successfully processed 9569 files; Failed processing 928 files. Access is denied. Error. Please Help Reply
lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/
19/29
10/5/13
Jon said
July 6, 2012 @ 10:33 pm For those who are getting the access denied error, you need ownership. I found that the quickest and easiest way to get around this is just to go into the properties of the drive in question (for example, your C drive) and take ownership of the drive in its entirety. This will also give you ownership of everything in the drive, which will get rid of the access denied error. This would be risky, but since youre resetting permissions and ownership anyway, this goes away once you finish. Reply
52.
Andy said
July 24, 2012 @ 9:59 pm Are you using cd /d : ?
53.
Andy said
July 24, 2012 @ 9:58 pm Fantastic thanks!! This works on 2008 R2 aswell.
lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/
20/29
10/5/13
Reply
54.
Angga said
August 31, 2012 @ 2:27 pm 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 you very much..Thanks you very much. Reply
55.
chia said
September 14, 2012 @ 11:34 am damn it just works!!!! Reply
56.
57.
Jeff said
September 26, 2012 @ 3:31 am What can I say? THANKS! Id completely screwed up my permissions in an attempt to write to a database via ASP. Eventually, my local computer server was FUBAR. Ran this script, now its back to default settings. So I now can play with it, and if I screw it up again, I know how to get back to neutral. Thanks guys. Reply
lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/
21/29
10/5/13
58.
liveDecent said
October 6, 2012 @ 12:59 pm lallousx86. man ure simply superb!!!! thumbs up!! Reply
59.
Frank said
October 13, 2012 @ 12:52 pm Thanks, 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 am Great. Really. What a solution Reply
Nisha said
November 17, 2012 @ 9:16 pm I 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 message abd even if I undo the same security settings to each folder seperately still exe,zip, and other type of files cant be excessed. I am using Windows 7 ultimate please help. Reply
61.
lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/
22/29 [...] ACL's as far as I understand it is Access Control Lists. So maybe boot to a command prompt
10/5/13
[...] ACL's as far as I understand it is Access Control Lists. So maybe boot to a command prompt and try:http://lallousx86.wordpress.com/2009-in-windows-7/ [...] Reply
62.
63.
rahul said
December 29, 2012 @ 5:07 pm Thanks a lot mate.. Really a great favour to me. Reply
64.
Li said
December 30, 2012 @ 2:15 pm Hi there, Very interesting stuff. Ive 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 isnt it? And I tried it both with and without spaces between each of these. /T/Q/C. So my Windows 7 operating system doesnt recognise this as a command could you help please? Thanks, Li p.s. I also tried your bat file in one of my folders but it didnt change any permissions for me? It would save me about two days work if either of these worked but they dont work on my PC? Reply
lallousx86 said
December 31, 2012 @ 8:51 pm
lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/ 23/29
10/5/13
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 your keyboard. This should work if you are using Windows 7 and above. Reply
Kenya said
January 10, 2013 @ 4:44 am I have Windows 7 64 bit and did this on my c drive. When the command prompt finished, it said, Successfully processed 2411. Failed to process 12510. Why didnt it reset all of the other files?
65.
66.
67.
lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/
Hello, yes this article is genuinely good and I have learned lot of things from it regarding
24/29
10/5/13
Hello, yes this article is genuinely good and I have learned lot of things from it regarding blogging. thanks. Reply
68.
69.
brac37 said
March 3, 2013 @ 9:13 pm The solution does not what it claims to do. When I click on the desktop to make a new folder, the uac shield still comes up. This means that the security settings are still broken. The solution claims to fix this. Reply
70.
dRdoS7 said
March 11, 2013 @ 4:23 am Hi, 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
lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/ 25/29
10/5/13
March 11, 2013 @ 4:24 am Now I did it!! Its icacls. Reply
71.
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-andpermission-in-windows-7 [] Reply
73.
webpage said
July 30, 2013 @ 9:43 am Do you mind if I quote a couple of your articles as long as I provide credit and sources back to your site? My blog site is in the very same area of interest as yours and my visitors would definitely benefit from some of the information you provide here. Please let me know if this ok with you. Cheers! Reply
lallousx86 said
August 3, 2013 @ 11:07 pm Whats your blogs address?
lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/ 26/29
10/5/13
Reply
74.
arad said
July 31, 2013 @ 11:41 am i use this trick but still donot access!!! help me please you dont have the correct permission to access the file location Reply
lallousx86 said
August 2, 2013 @ 8:25 am Did you run as admin the command prompt? Reply
arad said
August 5, 2013 @ 10:57 am yes.i Run cmd as an administrator. I test lots of way but still NO ANSWER
lallousx86 said
August 6, 2013 @ 8:30 pm Try to change ownership of the folder. I dont know the steps by heart but this is a rough idea: 1. right click on the folder 2. properties 3. security tab 4. advanced button 5. Owner label -> Change to change the owner 6. Add yourself as an owner and press Apply. Then try again with the instructions in the blog?
lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/ 27/29
10/5/13
75.
Rustee said
August 8, 2013 @ 5:58 pm icacls 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 pm Try to change ownership of the folder. I dont know the steps by heart but this is a rough idea: 1. right click on the folder 2. properties 3. security tab 4. advanced button 5. Owner label -> Change to change the owner 6. 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 in Windows 7 very useful, however many were having problems executing the steps [] Reply
77.
cobra said
28/29
lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/
10/5/13
September 5, 2013 @ 4:44 pm Thanks for the command, worked like a charmif you run Windows 8 and your start menu tiles disappear due to NTFS issues, use this commandbrings everything back to the way it was. Big ups for the share!! Reply
78.
Isaac said
September 15, 2013 @ 6:46 pm This is great, thanks for the tip. When joining an existing machine to a new domain all the file permissions seem to get messed up in Dropbox. This partially solved the problem and at least let me get access to the entire Dropbox directory again. Reply
79.
80.
RSS (Really Simple Syndication) feed for comments on this post TrackBack URI (Uniform Resource Identifier)
lallousx86.wordpress.com/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/
29/29