how remove "Account Unknown" file/folder permissions?

桐源 张 0 Reputation points

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?



Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
7,496 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,784 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MotoX80 25,671 Reputation points

    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.

    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.

    0 comments No comments