Takeown, icacls doesn't work!


  1. Posts : 582
    Windows 10 Pro 64 bit 19044.1706
       #1

    Takeown, icacls doesn't work!


    I own folder and i have full control. Yet i can't move it. It is folder in ProgramData of a program, which is taking a lot of space. It says i need administrator permissions, while i am on full admin account!

    It says exactly: "you need permission to perform this action, you require permission from computer's administrator to perform this action."

    I used commands from this site, which always used to work for me! windows 7 - How would I use Takeown to take ownership of all folders on one drive? - Super User

    Any ideas why?

    Thanks.
      My Computer


  2. Posts : 4,805
    Windows 11 Pro 64 Bit 22H2
       #2

    Changing the default location of the user profile directories or program data folders to a volume other than the System volume, you cannot service your Windows installation. Any updates, fixes, or service packs cannot be applied to the installation. Microsoft recommends that you do not change the location of the user profile directories or program data folders. This is especially true for Microsoft Store apps. Changing the location of %programdata% will cause errors when you install, uninstall, or update these apps.
      My Computer


  3. Posts : 6,856
    22H2 64 Bit Pro
       #3

    empleat said:
    I used commands from this site, which always used to work for me! windows 7 - How would I use Takeown to take ownership of all folders on one drive? - Super User
    If that is what you did then you'd better restore your backup or reinstall windows.

    Add Take Ownership to Context Menu in Windows 10

    Note   Note

    The Take Ownership context menu will not be available when you right click or press and hold only on the specific C: drive, C:\Program Files folder, C:\Program Files (x86) folder, C:\ProgramData folder, C:\Users folder, and C:\Windows folder. This was done by design since taking ownership of the Windows "C:" drive and these specific system folders can make Windows unstable as it would also take ownership of all their content at the same time.

    For folder operations in those locations or sub-directories it's better to use a third party app that can bypass rights checking rather than taking ownership.
      My Computer


  4. Posts : 582
    Windows 10 Pro 64 bit 19044.1706
    Thread Starter
       #4

    spunk said:
    Changing the default location of the user profile directories or program data folders to a volume other than the System volume, you cannot service your Windows installation. Any updates, fixes, or service packs cannot be applied to the installation. Microsoft recommends that you do not change the location of the user profile directories or program data folders. This is especially true for Microsoft Store apps. Changing the location of %programdata% will cause errors when you install, uninstall, or update these apps.
    I don't know what you mean by user directories, but i wouldn't change window's folders... This was third party program, programs put there large amount of cache, A. taking space of ssd and B. wearing it down. I use junction to move third party folders to a hard disk and than make it appear in Program Data. So far i had no problems with permissions.
      My Computer


  5. Posts : 5,452
    Windows 11 Home
       #5

    I used to take permission as admin (/a) but I had some issues with it, so I take them as an user instead.
    Also it seems, that inheritance is causing problems too within the last 10 upgrades, so I do it like this.
    Code:
    takeown /s %computername% /u %username% /f "%USERPROFILE%\Desktop" /r /d y
    icacls "%USERPROFILE%\Desktop" /inheritance:r
    icacls "%USERPROFILE%\Desktop" /inheritance:e /grant:r %username%:(OI)(CI)F /t /l /q /c
      My Computer


  6. Posts : 582
    Windows 10 Pro 64 bit 19044.1706
    Thread Starter
       #6

    TairikuOkami said:
    I used to take permission as admin (/a) but I had some issues with it, so I take them as an user instead.
    Also it seems, that inheritance is causing problems too within the last 10 upgrades, so I do it like this.
    Code:
    takeown /s %computername% /u %username% /f "%USERPROFILE%\Desktop" /r /d y
    icacls "%USERPROFILE%\Desktop" /inheritance:r
    icacls "%USERPROFILE%\Desktop" /inheritance:e /grant:r %username%:(OI)(CI)F /t /l /q /c
    When i enter first command, it says network path couldn't be found. While i double checked and it is correct.
      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 11:22.
Find Us




Windows 10 Forums