Windows 10: Can change permissions of whole folders, have to do it file by file

Page 1 of 2 12 LastLast
  1.    10 May 2018 #1

    Can change permissions of whole folders, have to do it file by file


    So recently I had some trouble with windows 7 and upgraded to ten after two attempts at reinstalling 7. I backed up my documents, music, etc onto one of many hard drives currently inside my machine before those two reinstall attempts. Now I'm at windows 10 and I can't mass change permissions of certain folders on that hard drive. Originally the problem was that for some reason I didn't have permissions to view files in those folders even though it's the same machine, merely a different windows installation, and I am also the only owner of my hard drives and my machine, so I fail to see why I should be disallowed access to MY files. Unfortunately I NEED what's in these folders, as it contains all of my music as well as important documents and the programs I need to reinstall to this machine. Anyway, the problem is this, I can change permissions to give myself access to these files ONE AT A TIME, but I cannot do this en masse to the entire folders. That poses a significant problem given the fact that there are 14,000 files in those folders, I cannot POSSIBLY manually change the permissions one file at a time, nor should I have to. I attempt to add permissions so that my username can even read the files, but it merely gives me the error "An error occurred while applying security information to [Folder name]. Failed to enumerate objects in the container. Access is denied" Once again, I am the ONLY user on this machine and I AM an administrator, so I fail to see why I should not once again have access to MY files. Any help would be greatly appreciated.
    Click image for larger version. 

Name:	5b55c69d136e30cdd156ac2d7d6fc655.png 
Views:	55 
Size:	6.8 KB 
ID:	188219Click image for larger version. 

Name:	bda4094da9ea0ed1b7f5f90eefa19cbd.png 
Views:	55 
Size:	28.8 KB 
ID:	188220
      My ComputerSystem Spec

  2. TairikuOkami's Avatar
    Posts : 3,333
    10.6 Home 1809 x64
       11 May 2018 #2

    Try Resetting NTFS files permission in Windows Graphical Utility

    Alternatively, try this (run in CMD as admin):
    Code:
    takeown /f D: /a /r /d y
    icacls D: /inheritance:r /grant:r Administrators:(OI)(CI)F /t /l /q /c
    
    takeown /s %computername% /u %username% /f D: /r /d y
    icacls D: /inheritance:r /grant:r %username%:(OI)(CI)F /t /l /q /c
      My ComputerSystem Spec

  3.    12 May 2018 #3

    TairikuOkami said: View Post
    Try Resetting NTFS files permission in Windows Graphical Utility

    Alternatively, try this (run in CMD as admin):
    Code:
    takeown /f D: /a /r /d y
    icacls D: /inheritance:r /grant:r Administrators:(OI)(CI)F /t /l /q /c
    
    takeown /s %computername% /u %username% /f D: /r /d y
    icacls D: /inheritance:r /grant:r %username%:(OI)(CI)F /t /l /q /c
    Beautiful, that utility seems to have fixed it! Thank you very much!
      My ComputerSystem Spec

  4. Bree's Avatar
    Posts : 8,616
    10 Home x64 (1803) (10 Pro on 2nd pc)
       12 May 2018 #4

    Sagerronan said: View Post
    ..the problem was that for some reason I didn't have permissions to view files in those folders even though it's the same machine, merely a different windows installation, and I am also the only owner of my hard drives and my machine, so I fail to see why I should be disallowed access to MY files...
    The reason is that it's not the name of your account that identifies you for permission purposes, it the SID of your account. That is that long number you see as 'Account Unknown' in your screenshot, because on THIS install your old account from the previous installation IS unknown.

    The solution is the take ownership with your new account, which is what TarikuOkami's commands helped you do.
      My ComputersSystem Spec

  5.   My ComputersSystem Spec

  6.    12 May 2018 #6

    Bree said: View Post
    The reason is that it's not the name of your account that identifies you for permission purposes, it the SID of your account. That is that long number you see as 'Account Unknown' in your screenshot, because on THIS install your old account from the previous installation IS unknown.

    The solution is the take ownership with your new account, which is what TarikuOkami's commands helped you do.
    Right, I understand why, the process to fix that in the entire hard drive was just unknown to me.

    That is actually more useful in the long run, thank you. Almost all the files on the hard drive are accessible, just two folders with 81 files left. I still don't have permission to view them despite taking ownership and resetting permissions through the option added to the context menu. If they are completely inaccessible, I will just format the drive, I can't copy the files to another hard drive nor view their contents.

    What's odd is that the whole folder says read-only even though I can delete the files and move them within the original hard drive if I want, I just can't view or copy them to another hard drive
    Click image for larger version. 

Name:	9e073fdbb237b0b2e2da37140870201a.png 
Views:	38 
Size:	13.9 KB 
ID:	188475Click image for larger version. 

Name:	e34d6f5ec0b502df92ed9a144bf9fb68.png 
Views:	37 
Size:	19.2 KB 
ID:	188474
      My ComputerSystem Spec

  7. Brink's Avatar
    Posts : 32,341
    64-bit Windows 10 Pro build 18242
       12 May 2018 #7

    Actually, your screenshot doesn't show the folder as Read-only.

    Set or Unset Read-only Attribute of Files and Folders in Windows 10 | Windows 10 Tutorials

    Let's see what your advanced security settings show for the folder to see if anything may standout. Be sure to blank out any email addresses if shown.
      My ComputersSystem Spec

  8.    12 May 2018 #8

    Brink said: View Post
    Actually, your screenshot doesn't show the folder as Read-only.

    Set or Unset Read-only Attribute of Files and Folders in Windows 10 | Windows 10 Tutorials

    Let's see what your advanced security settings show for the folder to see if anything may standout. Be sure to blank out any email addresses if shown.
    Click image for larger version. 

Name:	831fa44ae124f2281f8f1ad7ecd648f6.png 
Views:	1 
Size:	26.9 KB 
ID:	188478

    Click image for larger version. 

Name:	441203c96296b714ce33099fcd47c1c6.png 
Views:	1 
Size:	27.9 KB 
ID:	188479
      My ComputerSystem Spec

  9. Brink's Avatar
    Posts : 32,341
    64-bit Windows 10 Pro build 18242
       13 May 2018 #9

    I don't see any reason why you shouldn't be able to access them.
    Last edited by Brink; 15 May 2018 at 14:10. Reason: correction
      My ComputersSystem Spec

  10.    15 May 2018 #10

    I can delete the whole folder with contents, but I still don't have permission to open or copy the files inside the folder. I want to be able to access and copy the remaining files to a separate hard drive before I reformat the hard drive the files are on. I was mentioning deleting the files only as a last resort, I still would prefer to have them.
      My ComputerSystem Spec


 
Page 1 of 2 12 LastLast

Related Threads
I keep having the issue of not being able to delete files without permissions. I looked up many tutorials and none of them worked for me. 140987
Hi all - Problem Description: I have a number of media files from ripping/converting my DVDs to a drive that I use for streaming. Some of the older files I have have data in them in properties (Right click file, left click Properties, Details...
File Explorer used to give me the option to either overwrite or skip existing files when copying a folder from one drive to another to replace a same name folder on the target drive. Today, that option dialog disappeared and the copy-paste process...
I was trying the File History backup utility and of course it defaulted to a preset of folders/files as I did not "Remove" any. Actually what I really want to is only backup a single folder that I warehouse selected data in (C\special docs) What I...
Solved Can't seem to change permissions on folders in User Accounts and Family Safety
I keep getting a "Permission denied" error when trying to save stuff in the "My Documents" folder. The folder seems to be set to "read only", which is pointless for that folder - not even sure why it's been set to that. Any suggestions? I have...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 08:48.
Find Us