Reverting Ownership of Folder


  1. Posts : 28
    WIN10
       #1

    Reverting Ownership of Folder


    I have taken control of a folder by using TakeOwn.exe.

    Code:
    TakeOwn /F "C:\Windows\SystemApps" /A /R /D Y
    Is there a command associated with reverting the ownership to TrustedInstaller?
      My Computer


  2. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #2

    Hello @SSN651,

    SSN651 said:
    I have taken control of a folder by using TakeOwn.exe.

    Code:
    TakeOwn /F "C:\Windows\SystemApps" /A /R /D Y
    Is there a command associated with reverting the ownership to TrustedInstaller?
    Is this what you are looking for? . . .

    > Add Change Owner to Context Menu in Windows 10
    > Change Owner of File, Folder, Drive, or Registry Key in Windows 10

    I hope this helps.
      My Computer


  3. Posts : 28
    WIN10
    Thread Starter
       #3

    Reverting Ownership of Folder


    Thank you Paul Black.

    The first link is very useful.

    The second link gives examples of changing the owner using TakeOwn.

    Is there a way to set the owner to TrustedInstaller (like there is for Administrators)?

    Code:
    takeown /F "C:\Windows\file.exe" /A
    , instead of /A something else?
      My Computer


  4. Posts : 16,976
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #4

    If you were doing this through the user interface then I'd point out that you need to refer to TrustedInstaller as
    NT SERVICE\TrustedInstaller
    Since you will not be doing this often, I'd have thought doing it manually through the user interface would be acceptable.
    {Properties, Security, Advanced, Owner - Change} - this procedure is illustrated in FreeBooter's post #6 link below

    I don't think the TakeOwn command is a suitable command for what you want to do. Icacls would be appropriate.
    iCacls - SS64

    Denis
    Last edited by Try3; 15 Dec 2020 at 10:06.
      My Computer


  5. Posts : 1,746
    Windows 10 Pro x64 22H2
       #5

    You can't recover messed up ownership, problem is always that subdirectories may not have same owner.
    Best method is to take a look on fresh installed system and copy manually which is just too much work.

    icacls can recover permissions, but...
      My Computer

  6.   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:10.
Find Us




Windows 10 Forums