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

Page 1 of 2 12 LastLast

  1. Posts : 8
    10
       #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.
    Can change permissions of whole folders, have to do it file by file-5b55c69d136e30cdd156ac2d7d6fc655.pngCan change permissions of whole folders, have to do it file by file-bda4094da9ea0ed1b7f5f90eefa19cbd.png
      My Computer


  2. Posts : 5,452
    Windows 11 Home
       #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 Computer


  3. Posts : 8
    10
    Thread Starter
       #3

    TairikuOkami said:
    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 Computer


  4. Posts : 31,651
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #4

    Sagerronan said:
    ..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 Computers


  5. Posts : 68,921
    64-bit Windows 11 Pro for Workstations
       #5
      My Computers


  6. Posts : 8
    10
    Thread Starter
       #6

    Bree said:
    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
    Can change permissions of whole folders, have to do it file by file-9e073fdbb237b0b2e2da37140870201a.pngCan change permissions of whole folders, have to do it file by file-e34d6f5ec0b502df92ed9a144bf9fb68.png
      My Computer


  7. Posts : 68,921
    64-bit Windows 11 Pro for Workstations
       #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 Computers


  8. Posts : 8
    10
    Thread Starter
       #8

    Brink said:
    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.
    Can change permissions of whole folders, have to do it file by file-831fa44ae124f2281f8f1ad7ecd648f6.png

    Can change permissions of whole folders, have to do it file by file-441203c96296b714ce33099fcd47c1c6.png
      My Computer


  9. Posts : 68,921
    64-bit Windows 11 Pro for Workstations
       #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 Computers


  10. Posts : 8
    10
    Thread Starter
       #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 Computer


 

  Related Discussions
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 12:41.
Find Us




Windows 10 Forums