ICACLS: /findsid doesnt find anything

Armin Zingler 21 Reputation points
2020-08-17T12:18:26.603+00:00

There are some explicit file system ACEs referring to a certain user. I was trying to find them using ICACLS specifiying the SID:

icacls *  /findsid *S-1-5-21-......   /t

The problem: Nothing is found even though it should. I was trying a different user's SID and also it's name instead of the SID. Both of them worked. With the actual user to be found, I can't use the name because the user has already been deleted, so I have to use his SID.

So what am I doing wrong? Am I missing something?

(Strange new forums BTW. I was entering Windows 10 -> Security, but when posting, I don't see into which forum I'm posting. MSFT special again or am I missing something?)

Windows 10 Security
Windows 10 Security
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
2,926 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Daisy Zhou 24,981 Reputation points Microsoft Vendor
    2020-08-18T08:41:39.497+00:00

    Hello @Armin Zingler ,

    Thank you for posting here.

    Based on the description, I did a test in my lab.

    Environement:

    user: u1
    SID:S-1-5-21-3544329616-3252733086-2160935199-1114

    user: u4
    SID: S-1-5-21-3544329616-3252733086-2160935199-1140

    There are NTFS permissions on Newfolder,111.txt and 222.txt for u1. there are NTFS permissions on 222.txt for u4.
    18199-ac5.png

    If i delete u4, I can not get any result for u4, either.

    Here are detailed information:

    icacls "C:\newfolder" /findsid *S-1-5-21-3544329616-3252733086-2160935199-1114 /t

    icacls "C:\newfolder" /findsid fabrikam\u1 /t

    18323-ac3.png

    icacls * /findsid *S-1-5-21-3544329616-3252733086-2160935199-1114 /t

    icacls * /findsid fabrikam\u1 /t

    18324-ac4.png

    If i delete u4, I can not get any result for u4, either.
    18351-acl4.png

    icacls "C:\newfolder" /findsid *S-1-5-21-3544329616-3252733086-2160935199-1140 /t

    icacls "C:\newfolder" /findsid fabrikam\u4 /t

    18314-ac2.png

    icacls * /findsid *S-1-5-21-3544329616-3252733086-2160935199-1140 /t

    icacls * /findsid fabrikam\u4 /t

    18237-ac1.png

    Best Regards,
    Daisy Zhou


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.