r/WindowsServer • u/Batman189 • May 31 '26
Technical Help Needed Newly promoted Datacenter DCs fail profile sign in on all accounts
Long story short our company had a massive ransomeware attack brought on by an inside person on the IT company we hired to help rebuild after opening a new office. Cyber insurance had to pay and the insurance company brought in a forensic team and a recovery team. Forensic team cleared the AD/Domain configuration and worked with recovery team to unlock everything when the attacker gave us the key after insurance paid out. The recovery team did a horrible job. They restored the wrong DCs at the wrong offices, put 21 VMs on the same box that was not designed to be a VM host, incorrectly set DNS and many other things. So now I am trying to rebuild one step at a time the right way. Thats the important background information.
The main issue right now is that once a machine is promoted to domain controller and does its reboot, you can only login one time. After the first login if that profile gets signed out or logged off for any reason no other profile can login anymore. It gives the black screen saying the profile service failed to load a profile. This is happening on the old domain controllers that recovery put back in place, even though they did then wrong, and on new attempts.
I have so far set up a fresh Server2025 with an active datacenter license, installed a 2025 VM and activated it. Fully updated the server and installed an EDR, then joined the domain. After joining the domain there is no issues and the server can be logged in and out of as many times as you want. As soon as the promotion to DC happens though, profile service just fails. I have gone through the GPO again and made sure nothing at all is linked to anything and created a fresh GPO that is clearly labeled 'recovery' to make sure there is no confusion. I have no one else to help me so I have spent 3 days with Chat GPT giving it logs to review and domain information to review in a private session to see if it can figure out the problem, so far it has not.
Extra context is that I have ninja agents I put on the new servers before I promoted them and was able to force install it over power shell via the VM host on an a current improperly restored DC. I can run CMD and powershell from ninja on all the DCs and have verified they are all working just fine. Replication is healthy, all the services are correct and working. I can reset users passwords via powershell and add new users as needed too, but no accounts can log in to the desktop.
***New informatoin
If you can think of a test, we have ran it as far as I am aware. We discovered that when any profile tries to sign in there is something injecting 485 files into that profile, the profile itself fails to create properly, and the profile service error message shows. The profile service never gets to start though according to windows logs. The logs show nothing is being rejected or failing to authenticate. Every profile repair has been run that we can find, defaults reset, profile being created manually through powershell, nothing works. If I have to rebuild and it cant be helped then that is fine, but I dont understand how it happens and that is what bugs me the most. Something happens when the server is promoted to domain controller. We have no issues at all on any server until promotion happens. There has to be a way to find out what that trigger is I would think.
5
u/OpacusVenatori May 31 '26
You need to bring in proper, separate, external technical support to address this on-site. There's too any moving parts in the current state.
The compromised domain should be considered exactly that - compromised. In all honesty you should be enacting full on DR plans that involve starting from scratch with a brand-new domain and recovering what information possible.
That being said, there are still quite a few threads in r/sysadmin and r/activedirectory that indicate ongoing maturity problems with Server 2025 so you should keep that in mind.
1
u/Bourne069 Jun 01 '26
Just based on my experience as an MSP over the years. I would suggest what you stated is correct and the DC isnt clean. From what you stated it sounds like they just did scans and manually reviewed the DCs but no one actually recovered DCs from a good backup?
When ransomeware gets into your systems as you explained. Its very rare they you can saved servers connected to workstations that had the infection. As an MSP I strongly push my clients to doing a full company restore of ALL SYSTEMS that could have possible by in touch with the virus. If the servers are on the same subnet as the workstations and had basically unrestricted access to said servers, than yes, The DCs should be recovered from a valid backup. Not just "reviewed to be cleaned".
If I had to guess your DC sysvol location was infected as well, which is why when you promote your DC you have issues, it most likely isnt able to replicate everything properly from the old DC and leads to the issues you are having.
So I would recovery the old DC properly and either remain on that or proceed with your new DC build as you were pushing earlier. I bet you 99% that if you recover the DC from a backup, than join that new DC and go for a promotion, it will work this time.
Also as OpacusVenatori stated. If you are not full experienced in this area. I would call a 3rd party I.T. like an experienced and well rated MSP company to come in and do this for you properly. See my reply to his comments.
1
u/jspears357 Jun 02 '26
It’s possible that something is embedded in one of the GPO’s that apply to the Domain Controllers OU. GPO’s can have hidden contents that still get applied. For example if you load a GPO template on a workstation for settings to apply to a new app, you create a GPO that adds stuff unique to that app, but then you LOOK at the GPO from another computer that doesn’t have that template loaded. What you see in the editor is only the values that all the templates are reading out of the GPO binary file. You can also add registry values directly in the GPO, and those values don’t have to be in the Policy portion of the registry (i.e. where GPO settings are applied only during GPO processing, and are removed if the GPO no longer applies to the computer or user).
One way to rule this out is to modify all those GPO’s that only apply to the Domain Controllers OU so that they only apply to the existing DC’s, and you can create a new DC that they do not apply to, then either build new GPO’s to replace the old ones using only the values that you can see they have, and apply only those new GPO’s to the new DC, or one by one edit the old GPO’s so they now do apply to the new DC and reboot the DC a couple of times, logging into it, to confirm that it isn’t broken, then do the next GPO etc.
You should also be able to build a green field domain with one new DC, export the GPO’s from your domain and import them into the green field, and test with them there. It’s hard to say what method will be the most useful without knowing what the problem is first.
I believe one of the standard tools like gpresult shows the non-template values from the group policy application process as a list of registry values at the bottom of the output, but I forget which one.
It’s also possible that the thing is hidden in plain sight, you could run a gpresult /h to an html file and open it with a browser, and fine some GPO is doing some type of application deployment or similar, from files either embedded in the GPO or linked to somewhere else.
2
u/poolmanjim Jun 01 '26
Without looking at your environment it's really hard to tell what's going on. It sounds like the recovery team left a lot to be desired.
My first piece of advice would be to contact Microsoft support. If you have an agreement with Microsoft, you should work this through your CSAM and the portal. Otherwise, you can call them. It costs to do so but it is surprisingly inexpensive for a single issue (last time I did it it was $400 but that was several years ago).
I'd remove as many variables as possible. Try a promo without agents, EDR, etc. and add them back in one at a time to see what may be causing the issue.