how remove "Account Unknown" file/folder permissions?

桐源 张 5 Reputation points
2023-05-26T10:18:58.14+00:00

Recently, I reinstalled the operating system(win10) and found that some folders had an Account Unknown(S-1-5-21...) in the security settings, which I guessed was the account left over from the previous operating system.

I tried to use the icacls command to remove this unknown account permission in bulk, but it prompted that 0 files were successfully processed.

I want to know how remove this unknown account permission using the icacls or some other command?

捕获

捕获3

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,417 questions
Windows 10 Setup
Windows 10 Setup
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,889 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. MotoX80 31,316 Reputation points
    2023-05-26T18:35:01.79+00:00

    You should be able to just click on the Edit button, select the account, and then click on the Remove button in explorer. The "(OI)(CI)" in the icacls output indicates that that entry will be inherited by all files and subfolders. You should only need to remove it in this one spot.

    You should be aware that Windows has "capability SID's" that do not translate to a friendly name.

    https://learn.microsoft.com/en-us/troubleshoot/windows-server/windows-security/sids-not-resolve-into-friendly-names

    I recommend that you do not touch the permissions on either of the Program Files folders, the ProgramData folder and any folder under c:\Windows.