Regular Expressions 101

Community Patterns

Finding Orphaned SIDs

1

Regular Expression
PCRE (PHP <7.3)

/
\QS-1-5-21\E\-[0*-9]*\-[0-9]{3,5}
/

Description

Regex to find orphaned SIDs within the active directory database.

Submitted by anonymous - 8 years ago