Regular Expressions 101

Finding Orphaned SIDs

Open Workspace
  • PCRE (Legacy)
  • Match
1

Regular Expression

/
\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