Friday, December 23, 2011

ADrestore

Here is a damn fine util from Sysinternals! I was advised a server was off the net and could be deleted from AD, so sent an email round my colleagues and one of them comes back, a day later, saying..."Thats a virtual system and live on that box, it's switched off though" twenty minutes or so later I get the shout "It's ON!!" Now what do you do?

Well you should always have Sysinternals downloaded and then use the ADRESTORE command...goes something like this.....

adrestore -r name-of-deleted-object

-r switch prompts for the recovery to happen. hit Y=yes recovery done.

a quick dsquery and a dsget will prove the object is back...

dsquery user -name "*displayname*" | dsget user -dn

or

dsquery computer  -name "*hostname*" | dsget computer -dn

should bring back the DN of the object and proves its a successfull restore.

Petri have a webpage here with some good info too AD Recovery from Petri

No comments:

Post a Comment