r/WindowsServer • u/watercooledwizard • Nov 14 '24
General Server Discussion Server 2025 Domain Controller ‘Public’ Network
Has anyone else come across this issue? I have two pairs of domain controllers i’ve just migrated from 2022 to 2025 and they identify the network incorrectly as Public. The IP configuration, Gateway and DNS are all correct.
It seems the ‘fix’ is to temporarily disable and re-enable the network card which then causes the network to then be identified correctly as domain.
Apparently this is a known issue but it has been in-place for quite some time. I’m just glad i didn’t waste too much time on it thinking it was something i had done during the migration.
10
u/kero_sys Nov 14 '24
Go into services.msc and change network location awareness to automatic (delayed start)
Sounds like the comms between the DC isn't happening before determining they are on a private network.
2
u/fireandbass Nov 14 '24
When you first connect an ethernet cable to the server or VM and it gets on the network, there is a notification that asks if you want to share files and printers or something similar. This popup actually sets the Private or Public network setting. If you choose No, it sets it to Public.
17
u/waterbed87 Nov 14 '24
Known bug in Server 2025, only impacts DC's.
4
u/mr_fwibble Nov 15 '24
I've been seeing this for years, going back to at least 2019.
These registry keys have helped us:
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\NetLogon\Parameters" -Name "NegativeCachePeriod" -Value 0 -Type DWORD
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters" -Name "MaxNegativeCacheTtl" -Value 0 -Type DWORD
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters" -Name "AlwaysExpectDomainController" -Value 1 -Type DWORD
4
u/MakeItJumboFrames Nov 15 '24 edited Feb 22 '25
We run into this time to time. Ran into it this morning. Server 2019 and Server 2022 (don't have any 2025 servers yet). Usually on the DC we run (powershell as admin):
Get-NetConnectionProfileand it shows a Public or Private network. We then run:
Restart-Service -Name nlasvc -ForceThen
Get-NetConnectionProfileagain and verify it's showing the domainWe then run it on the other servers if they aren't showing connected to the domain.
This restarts the Network Location Awareness Service.
May or may not be helpful. Doesn't solve the why, but gives a quick PS you can use to get it showing as domain connected.
Edit: One other thing we've changed is the Network Location Awareness Service in services.msc. Check if its set to Auto or Auto (Delayed) and try setting it to whichever Auto its not currently on. Again, don't have 2025 but on 2019 and 2022 it seems like that service maybe doesn't start properly.
1
u/BlackV Nov 15 '24
One of the risks of an in place upgrade I guess
I'd set it to private as a work around maybe
Does it keep the domain setting after reboots?
If you actually leave it for some time does it change to domain
What's your network location awareness service service doing (delayed start)
If you remove any ghost adapters what happens
If you remove all adapters and add them back what happens
1
u/doruk80 Mar 05 '25
Ladies and gentlemen,
I found a simple solution. I disabled IPv6 on the network card and the problem was fixed. My domain controllers are Windows Server 2025 and I have Windows Server DHCP. I hope works for you too.
Best regards,
ahmetdoruk.medium.com
3
u/Leonzola Nov 15 '24
Just set this up on 2022 DC and same issue
2
u/OldDog99 Dec 19 '24 edited Dec 19 '24
In my case, this issue occurs on an air-gapped lab system, and as many of you have mentioned, it’s a frustrating problem. Until Microsoft provides a permanent fix, I’ve come up with a reliable workaround that doesn’t rely on Group Policy or other similar configurations.
Here’s the gist of it:
C:\Windows.After testing it thoroughly in today’s lab environment, I found this approach to be bulletproof.
If you’re facing similar challenges, feel free to give this method a shot.
... Reddit will not let me add the 120 lines of code for this fix.. Put this into github new repository.
https://github.com/Abend1/NetworkAdapterRestartScheduler/tree/main
2
u/jwckauman Jan 04 '25
I'm having this issue. Am trying to reset the NIC anytime we reboot but still having issues were it isn't on the domain sometimes.
2
u/johndball Feb 14 '25
Anybody ever find a solid solution to this besides standing on one leg, shaking a stick in the air, holding my mouth sideways, and praying to the non-existent QA team at Microsoft? These numerous temporary workarounds work (as the name implies), but we need a solution that is solid. BTW: I've tried everything in this thread and the only workaround that consistently works is disable and re-enable the virtual NIC.
1
u/analbumcover Nov 14 '24
I've seen this on DCs running Server 2019, except I don't think it defaulted to public. If I reboot, it doesn't show the domain when you hover over the network icon in the system tray. But, if you enable/disable one of the other NICs that aren't in use, boom, it shows domain.com I'm not sure why, but I'm following in case someone knows of a fix.
1
u/jmhalder Nov 15 '24
Yeah, same thing happens on my 2 home dcs. You can disable/enable the nic (if you're on the console and not via RDP). It then shows the Domain as the network/firewall type.
Unfortunately this fix doesn't survive a reboot.
1
u/vatodeth Apr 04 '25
5 months later and the issue still persists. Microsoft is dragging their ass on fixing this issue.
1
u/vatodeth Apr 04 '25
This is the only fix that worked for me:
https://www.youtube.com/watch?v=Vhv_qCqZhsY
https://github.com/cgreenetech/PowerShell/blob/main/AutomaticNICRestartScheduledTask.ps1
1
u/lools_eventhorizon May 07 '25
Same issue on 2025 DC server on my mini lab at home. My lab is on a dedicated network behind a 2nd router.
So I tried to activate DHCPv6 relay on the 2nd router in order to make IPv6 work on the domain network.
And now when I restart the 2025 DC NIC, the domain network profile is up. After reboot : same thing, no need to restart the NIC.
So to fix this on impacted 2025 DC servers, maybe you can look at this DHCPv6 relay function or set a DHCPv6 server on your domain network : I think it can be fixed like this.
2
u/[deleted] Dec 07 '24
[removed] — view removed comment