# RPC

```
rpcclient -U '' -N 10.10.10.169  
```

```
enumdomusers
enumdomgroups
```

{% hint style="info" %}
Some bash kungfu  can be used to cleanup the users output: `cat raw | awk -F [ '{print $2}' | awk -F] '{print $1}' > users.txt`
{% endhint %}

```
queryuser joe
queryuser 0x451    
querygroup 0x44f        <-- Must use the RID for querying the group
querygroupmem 0x44f     <-- Shows what user is in the group(by rid)
```

```
querydispinfo        <-- Displays comments made on accounts
```


---

# 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://pnpt.adot8.com/active-directory/initial-attack-strategy/rpc.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.
