SxpRevoke.exe utility.SxpRevoke.exe "Revoke all unknown and deleted accounts"
Answer:
No. Security Explorer does not provide a CLI equivalent for the “Revoke all unknown and deleted accounts” feature.
This capability is exclusive to the Security Explorer GUI and has not been exposed through any CLI tools.
The GUI option “Revoke all unknown and deleted accounts” performs an automated cleanup operation that:
This logic includes built-in SID resolution and validation mechanisms that are not implemented in the CLI tools.
The Security Explorer CLI utilities (including SxpRevoke.exe) support:
The CLI cannot:
There are no hidden or undocumented parameters to enable this functionality via CLI.
You can approximate the functionality by:
Step 1 – Identify unresolved/unknown SIDs:
PowerShell
Step 2 – Revoke permissions using CLI:
BAT
⚠️ Note: This requires custom scripting and does not fully replicate GUI intelligence.
The GUI remains the only fully supported method to: