Sunday, November 27, 2011

Recover deleted AD Accounts


An account was accidentally deleted….so I recoovered it by using

get-qaduser  -tombstone | format-list * > path_to_output_file.txt

What that will do…type the output of tomstoned AD user accounts to the file you specified in path_to_output_file.txt ….then once you have that, use whatever search method you know to search the file for the account that has been deleted….then run

Get-QADUser -Tombstone <name> |restore-QADDeletedObject

Where <name> = deleted account

Thats you done! Account recovered

You will need the Quest Active Roles snap-in or use the Quest powershell shell.

No comments:

Post a Comment