Active Directory repair after roll back. Hyper-V virtual machine
Recently rolled back our AD server (Windows Server 2008) due to a ransomware issue. After doing an instant recovery (Veeam backup & Replication) of the VM, the active directory is now corrupt. Is there a way to repair it?
VirtualizationActive DirectoryHyper-V
Last Comment
Pber
8/22/2022 - Mon
Daryl Bamforth
Not really, AD does not work well with snapshots,
Have a look at this Microsoft Article for considerations when running DC's in Hyper-V.
Do you have any other back-ups?
How big is your environment? (How many users/objects?)
M A
The only recommended way is recover backup.
Do you have another backup?
Do you have ADC?
Aaron Moukperian
ASKER
I only have the other roll back dates within Veeam, no other backup in place. We only have the one DC running AD, there is another VM running the exchange server. It's not a large environment only 40 AD users
I can get into the server but when I go into active directory and I access a user when I try and to view the member of tab i get operation error has occurred. Also, users are unable to login to the domain.
Daryl Bamforth
Have the AD services been started back up?
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
The Active Directory Domain services and web services both show started
Aaron Moukperian
ASKER
There is only the single DC
Aaron Moukperian
ASKER
I also get an error on the Exchange VM when trying to access the exchange management console "Kerberos" authentication failed: connecting to the remote server failed with the following error message: The WinRM client received an HTTP server error status (500) the remote service did not include any other information about the cause of failure. This started after the rollback.
What is the date/time of the AD? if you rolled it back is it wrong?
Try re-adding one of your PCs back into the domain (reset the pc object), reset a users password and see if they can now log in.
Restoring from backup may have broken the trust relationship between computer objects and the domain.
Aaron Moukperian
ASKER
I checked the date and time it is correct on all servers. I'm attempted to reconnect a PC now
Aaron Moukperian
ASKER
Looks like it can join the domain without error but when I go to log in, says incorrect password. Attempting to reset the password from AD gives An internal error has occurred
Agree with Lee.
You should test your backup, And Veeam allows to restore backup without effecting the production network.
Please try to restore another backup and update the status here.
Meanwhile create 2 new VMs and start installation of new domain controller and new exchange server.
Start copying the ED file from Exchange server to this server for mounting the DB.
In case if that restore fails you can continue creating these accounts and install Exchange and mount the database.
I tried running a repair on the database but to no luck. It's a small environment so I'll end up rebuilding it. I wasn't the one that setup this environment to begin with but I appreciate the tips.
yo_bee
At least you learned something and hope if your AD is compromised in the future you have a solid DR plan.
So since my current AD is corrupt I can't join a secondary DC to the existing. Is my only option to backup the data from the main DC format and reinstall?
The secondary DC would have only been a viable if it was already joined prior to the corruption.
The damage has been done and you do not have a true backup of the system state so there is no way to do restore (non authoritative restore).
Aaron Moukperian
ASKER
That's correct I don't have the Windows system backup. So I need to take the current corrupted Active Directory VM offline and bring up a new VM and start fresh?
If you have an additional DC (ADC) you could seize the existing DC and make your systems up.
You should have working backup offsite. Test the backup and copy that backup to a NAS or HDD and save/keep it offsite on a monthly basis.
If you have budget please try to have a DR site.
If I am not mistaken there is not primary DC and secondary DC concept after 2008 server. It is replaced with DC and ADC.
FSMO holder is considered as DC. Please correct me if I am wrong.
yo_bee
You are technically creating a completely new domain.
Your old dc should not even exist anymore.
Daryl Bamforth
As far as your new install is concerned it is the Primary DC as the domain only exists on the old, corrupted VM. So as long as that one is off the network (disconnected NIC does this nicely) the new VM will know nothing about it and be quite happy to install away and be authoritative for your domain.
Thanks everyone, for your input on this issue. I've since setup the new VM server with AD. Question regarding the old VM sever with AD, it is possible to just remove AD and have it act as a file server or will that potentially mess with the new AD Server?
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
You could try and remove AD role which will uninstall all the AD components and return this server to a server in a workgroup and then you can add it to your new domain
yo_bee
Should be fine as long as the demotion is clean. You will need to rejoin the machine as a member server.
There will still need to apply new ACL since the AD is new.
Also best practice is not to have your file server live on your DC.
Aaron Moukperian
ASKER
The last issue I'm having is being able to reconnect to the exchange server since the corrupt Active Directory. We're moving to office 365 but need to access the exchange server to migrate the old email. Do I need to connect the exchange server to the new AD?
You mentioned that have instant recovered domain controller using Veeam. So it looks like you have valid backups of domain controller. If your backup is properly configured (application aware processing was enabled within dc backup job settings) you should be able to do authoritative restore of this domain controller. So if you have backup prior to date when rollback occure it should work for you. Pls take a look here on how to do authoritative restore of dc: https://www.veeam.com/kb2119
Unfortunately I'm not exchange expert so others needs to point you what to do with exchange server after authoritave restore of dc. And/or if it this is supported in such configuration. So it should be possible depending on jour job config.
Pber
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.
I have recommended this question be closed as follows:
If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.
Have a look at this Microsoft Article for considerations when running DC's in Hyper-V.
https://technet.microsoft.com/en-us/library/virtual_active_directory_domain_controller_virtualization_hyperv(WS.10).aspx
Specifically the back-up sections.
Do you have any other back-ups?
How big is your environment? (How many users/objects?)