Created
January 16, 2025 02:02
-
-
Save jschlackman/a48161ad2e747d84e0178ce081b9a874 to your computer and use it in GitHub Desktop.
List all objects in the Active Directory Recycle Bin and allow selection of an object to be permanently removed immediately
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-AdObject -Filter 'IsDeleted -eq $True' -IncludeDeletedObjects -Properties * | Out-GridView -OutputMode Single | Remove-ADObject |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment