Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using 2008 Recycle Bin to restore deleted AD DNS zone

Status
Not open for further replies.

beefstew

Technical User
Oct 27, 2002
124
GB
Hi,

I am trying to restore a deleted AD DNS zone using the 2008 recycle bin. I CAN see the the deleted DNS zone (and all the objects within the zone) when looking at the deleted Items container using ldp.exe but do not know whether its actually possible to restore the whole zone with one command or whether I have to restore each object manually? With the amount of entries in the zone, doing it one by one would take to much time, and a authorative restore would be much easier.

Does anyone know whether its possible to use the recycle bin to quickly restore the Zone without downing a DC please?

Cheers
 
From the recycle bin, no idea. I back up the original working *.dns files to a backup directory, so I can always go back. If the file is a .dns file it should work.

Would this be an help...


........................................
Chernobyl disaster..a must see pictorial
 
Thanks for the help but I managed to restore using the Recycle Bin with Powershell as stated below

Import AD module and run the following commands substituting domain.com with the Domain to restore

View the deleted zone:

get-adobject -filter ‘isdeleted -eq $true -and msds-lastKnownRdn -eq "..Deleted-domain.com"’ -includedeletedobjects -searchbase "DC=ForestDnsZones,DC=we,DC=int" -property *


Restore the deleted zone:


get-adobject -filter ‘isdeleted -eq $true -and msds-lastKnownRdn -eq "..Deleted-domain.com"’ -includedeletedobjects -searchbase "DC=ForestDnsZones,DC=we,DC=int" | restore-adobject


Restore all child objects:

get-adobject -filter ‘isdeleted -eq $true -and lastKnownParent -eq "DC=..Deleted-domain.com,CN=MicrosoftDNS,DC=ForestDnsZones,DC=we,DC=int"’ -includedeletedobjects -searchbase "DC=ForestDnsZones,DC=we,DC=int" | restore-adobject




Rename zone to original name:

rename-adobject "DC=..Deleted-domain.com,CN=MicrosoftDNS,DC=ForestDnsZones,DC=we,DC=int" -newname "domain.com"



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top