> For the complete documentation index, see [llms.txt](https://windows.dfirhandbook.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://windows.dfirhandbook.com/windows-artifacts/persistence/crowdstrike-searches/local-account-creation-deletion.md).

# Local Account Creation/Deletion

```splunk-spl
event_platform=Win event_simpleName IN (UserAccountCreated, UserAccountDeleted)
| convert ctime(ContextTimeStamp_decimal) as TimeStamp
| rename RpcClientProcessId_decimal as falconPID
| eval ProcExplorer=case(falconPID!="","https://falcon.crowdstrike.com/investigate/process-explorer/" .aid. "/" . falconPID)
| table TimeStamp, aid, ComputerName event_simpleName, UserName, UserRid, ProcExplorer
```
