# RecycleBin

도메인의 Recyle Bin이 활성화 되어있으면 Deleted Objects 컨테이너가 생성되며 삭제된 도메인 객체는 기본적으로 180일 보관됩니다.

객체에 대한 GenericWrite 권한이 있다면 삭제된 객체를 복원할 수 있습니다.

## Abuse

<pre class="language-powershell"><code class="lang-powershell"><strong># 삭제된 도메인 계정 열거
</strong>Get-ADObject -Filter 'isDeleted -eq $true -and objectClass -eq "user"' -IncludeDeletedObjects

<strong># 복원
</strong>Get-ADObject -Filter 'isDeleted -eq $true -and Name -eq '"*mick3y*"' -IncludeDeletedObjects | Restore-ADObject
</code></pre>


---

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