Powershell Tip #57: Restoring a user from AD Recycle Bin with PowerShell

By | November 10, 2015

Tip: You can restore a user from Active Directory Recycle Bin with PowerShell.

# The Recycle Bin has been introduced since Windows Server 2008 R2
# The forest functional level has to be at least on Windows Server 2008 R2
# Once you enable the Recycle Bin, you can’t revert back (irreversible)

To enable the Recycle Bin (admin rights required) :

enable-recyclebin-active-directory-powershell

Delete (to Recycle Bin)

delete-user-active-directory-recycle-bin

Restore (from Recycle Bin)

restore-ad-user-powershell-recyclebin

Note: To do that with GUI (Windows Server 2012) :

Server Manager > Tools > Active Directory Administrative Center > Domain > Deleted Objects > Object (Restore)

administrative-center-restore-object


previous-buttonnext-button

2 thoughts on “Powershell Tip #57: Restoring a user from AD Recycle Bin with PowerShell

  1. Pingback: Powershell Tip #56: Convert Decimal Hexadecimal | Powershell Guru

  2. Pingback: Powershell Tip #58: Find Active Directory Schema Version | Powershell Guru

Leave a Reply

Your email address will not be published. Required fields are marked *