> For the complete documentation index, see [llms.txt](https://tools.thehacker.recipes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tools.thehacker.recipes/mimikatz/modules/sid/add.md).

# add

{% hint style="warning" %}
To use this command, [`sid::patch`](/mimikatz/modules/sid/patch.md) must be executed first.
{% endhint %}

`sid::add` can be used to add a SID to `sIDHistory` of an object. The command must be executed directly on a domain controller. It has the following command line argument:

* `/sam`: the `sAMAccountName`.
* `/new`: the new SID value. It also accepts format such as `Builtin\administrators`.

```
mimikatz # sid::add /sam:username /new:Builtin\administrators
```
