repositories

daemon-sec-cheatsheet

The cheatsheet vault for operators: AD, enumeration, exploitation, priv-esc, web, DFIR

clonegit clone https://git.daemon-sec.xyz/daemon-sec-cheatsheet.git
ad-adds-recycle-bin.mdMarkdown92 lines3.1 KiBsource raw download

title: "Active Directory - Recycle Bin" section: "Active Directory" sectionSlug: "active-directory" sourcePath: "docs/active-directory/ad-adds-recycle-bin.md" sourceUrl: "https://github.com/swisskyrepo/InternalAllTheThings/blob/203bb0c0b290/docs/active-directory/ad-adds-recycle-bin.md" sha: "203bb0c0b290" isIndex: false#

Active Directory - Recycle Bin#

Details#

Enable Active Directory Recycle Bin in PowerShell

Enable-ADOptionalFeature -Identity 'CN=Recycle Bin Feature,CN=Optional Features,CN=Directory Service,CN=Windows NT,CN=Services,CN=Configuration,DC=contoso,DC=com' -Scope ForestOrConfigurationSet -Target 'contoso.com'

Deleted Objects#

Requirements:

Exploitation:

Restore Objects#

Requirements:

By default, only Domain Admins are able to list and restore deleted objects.

On restoration some objects retains attributes:

Exploitation:

References#