PowerShell Restore Deleted User

Restore Deleted User Object

Tool
Get-ADObject
Category
Post-Exploitation / AD Object Manipulation
Platform
linux
Requires
shell access

Open in Command Manager

Syntax

Angle-bracket tokens are placeholders — replace them with your target's values, or open this command in the app to fill them in and copy the result.

Get-ADObject -Filter 'samaccountname -eq "<user>"' -IncludeDeletedObjects | Restore-ADObject

Examples

Get-ADObject -Filter 'samaccountname -eq "Todd.Wolfe"' -IncludeDeletedObjects | Restore-ADObject

Tags

powershell ad restore user deleted