New
#1
Reverting Ownership of Folder
I have taken control of a folder by using TakeOwn.exe.
Is there a command associated with reverting the ownership to TrustedInstaller?Code:TakeOwn /F "C:\Windows\SystemApps" /A /R /D Y
I have taken control of a folder by using TakeOwn.exe.
Is there a command associated with reverting the ownership to TrustedInstaller?Code:TakeOwn /F "C:\Windows\SystemApps" /A /R /D Y
Hello @SSN651,
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.
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)?
, instead of /A something else?Code:takeown /F "C:\Windows\file.exe" /A
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.
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...