Upgrade Windowws Server from 2016 to 2025

Ilias P. Misailidis 0 Reputation points
2026-09-28T12:08:15.3866667+00:00

Windows Server 2025 post-upgrade issues – DFSR and DHCP Failover

Purpose

We would like Microsoft guidance on two issues observed after in-place upgrades of Windows Server 2016 systems to Windows Server 2025. This initial request is intentionally anonymized and contains no organization-specific identifiers.

Issue 1 – DFS Replication authentication failure

On multiple independent DFSR server pairs, DFS Replication repeatedly logs Event ID 5002 while attempting to communicate with the replication partner. The event reports Error 5: Access is denied.

At approximately the same time, the receiving partner records Security Event ID 4625 for the remote server computer account. The failed authentication is Logon Type 3, uses Kerberos, and reports Status 0xC000006D.

Validation already completed:

DFSR service is running.

Computer secure-channel validation reports True / healthy.

DFSR-related SPNs are present.

No duplicate SPNs were detected.

Time synchronization is healthy.

Basic Kerberos service-ticket retrieval succeeds in an interactive user context.

No machine-account reset, SPN modification, DFSR database rebuild, or DFSR topology recreation has been performed.

Issue 2 – DHCP Failover replication / authorization behavior

A separate Windows Server DHCP failover pair was also upgraded in place from Windows Server 2016 to Windows Server 2025. DHCP service and failover operation recovered and clients continued to receive leases; however, post-upgrade validation exposed an issue when attempting DHCP failover configuration replication, returning an Access Denied / authorization-related error.

We also observed inconsistent partner-name representation in the failover relationship metadata: one view/relationship used fully qualified server names for both partners, while another represented one partner by FQDN and the other by IP address. We have not modified the relationship solely to normalize this representation because we want to confirm whether it is relevant or expected.

We would like Microsoft to confirm whether the DHCP replication Access Denied condition can be related to AD authorization, Kerberos/SPN, DHCP server authorization, or failover relationship metadata after an in-place OS upgrade, and what the supported remediation procedure is.

Questions for Microsoft

Are the DFSR Event 5002 / Error 5 and Kerberos computer-account failures described above a known Windows Server 2025 post-upgrade issue or known condition?

For DFSR, what Microsoft-supported logs/traces should be collected to determine why partner machine-account authentication is rejected even though the domain secure channel is healthy?

For DHCP Failover, what are the supported checks and remediation steps for failover configuration replication returning Access Denied after an in-place upgrade?

Is an FQDN-versus-IP inconsistency in DHCP failover partner metadata relevant to authentication or configuration replication, and should it be corrected?

Could upgrading directly from Windows Server 2016 to Windows Server 2025 contribute to either behavior? Would an intermediate Windows Server 2022 upgrade have changed the supported or expected outcome?

What remediation sequence does Microsoft recommend while preserving existing DFSR data/topology and DHCP failover configuration?

Changes intentionally not performed

We have not reset computer accounts, reset secure channels, modified SPNs, rebuilt DFSR databases, recreated DFSR topology, recreated DHCP failover relationships, or made AD-side changes. We prefer to preserve the current state until Microsoft confirms the supported diagnostic and remediation path.

Windows for business | Windows Server | Devices and deployment | Set up, install, or upgrade
0 comments No comments

3 answers

Sort by: Most helpful
  1. Harry Phan 33,480 Reputation points Independent Advisor
    2026-09-28T13:10:52.6566667+00:00

    Hello,

    The DFSR Event 5002 with Kerberos failures after upgrading to Windows Server 2025 usually indicates that the DFSR service is unable to authenticate with its partner using the machine account, even though the secure channel test looks fine. This is often tied to SPN binding or residual metadata after an in-place upgrade. Collect DFSR debug logs from %systemroot%\debug\dfsr*.log and enable tracing with DFSRDiag.exe /setlogginglevel /all:5 to confirm. If replication remains blocked, the supported remediation is a non-authoritative restore (D2) on the affected partner, which preserves data and topology.

    For DHCP failover, the “Access Denied” error during replication is typically linked to AD authorization inconsistencies or mismatched partner metadata. Use Get-DhcpServerInDC to verify AD entries and check for CNF-tagged duplicates in ADSI Edit under Configuration\Services\NetServices. If you see inconsistent partner names (FQDN vs IP), normalize them to FQDN on both sides, as mismatches can break replication. Initiating replication with Invoke-DhcpServerv4FailoverReplication from the authoritative partner is the supported method.

    Direct upgrades from 2016 to 2025 are supported, but they increase the chance of leftover metadata issues compared to staged upgrades through 2022. If corrections to SPNs, AD authorization, and failover metadata do not resolve the problem, rebuilding DFSR topology or DHCP failover relationships may be required.

    I hope you've found something useful here. If it helps you get more insight into the issue, it's appreciated to accept the answer. Should you have more questions, feel free to leave a message. Have a nice day!

    HP.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

  2. James Gamble 170 Reputation points
    2026-09-28T14:44:21.8566667+00:00

    Hola Ilias,

    I think there are two different issues here, and I wouldn’t jump to rebuilding DFSR or recreating DHCP failover yet.

    For DHCP, your error helps a lot:

    Invoke-DhcpServerv4FailoverReplication

    Failed to enumerate failover relationships...

    WIN32 5 - Access Denied

    Because it fails while enumerating the relationships, before replication even starts, I’d first treat this as a management/API authorization problem rather than a failover transport problem. Microsoft’s DHCP failover documentation requires that the command be run with elevated administrative rights on the DHCP server.

    So the simplest thing I’d verify is that the PowerShell session is elevated and the account is a local Administrator on the DHCP server named in -ComputerName. I’d also try the command locally on that DHCP server from an elevated PowerShell window.

    I would not rebuild the failover relationship just because one view shows an FQDN and another shows an IP address. Microsoft explicitly allows the failover partner to be configured using a NetBIOS name, DNS name, or IP address, so that representation isn’t inherently invalid.

    The fact that the relationship itself reports State = Normal and TCP 647 succeeds also argues against the partner identity being the first thing to change.

    The DFSR side is more interesting.

    Event 5002 with Error 5, combined with a 4625 on the receiving partner for the remote computer account, indicates that DFSR is reaching the authentication stage and that the machine-account logon is being rejected. A healthy Test-ComputerSecureChannel doesn’t completely rule that out because DFSR runs as Local System and authenticates using the computer account, while your interactive Kerberos tests are using your user context.

    I would not do a D2 restore at this point. A non-authoritative DFSR restore repairs the replicated data state; it won’t fix a Kerberos/machine-account authentication failure.

    One change that is especially relevant in 2026 is Microsoft’s Kerberos RC4 hardening. The July 2026 security updates moved Windows domain controllers into enforcement mode for the RC4 changes related to CVE-2026-20833. Microsoft specifically warns that workloads still depending on RC4 can begin failing authentication once enforcement is active.

    I’d check the two DFSR server computer accounts for AES support: Get-ADComputer SERVERNAME -Properties msDS-SupportedEncryptionTypes | Select-Object Name,msDS-SupportedEncryptionTypes

    If one of those upgraded machine accounts doesn’t have usable AES keys or has stale encryption-type metadata, that could explain why a machine-account Kerberos logon is failing even though ordinary connectivity looks healthy. Microsoft specifically notes that older accounts may need their password/key material regenerated to create modern AES keys. For a computer account, the supported way to do that is to reset the machine-account password: Reset-ComputerMachinePassword -Server <DCName> -Credential (Get-Credential)

    I would only do that on one affected DFSR server first, during a maintenance window, and then reboot it. That is much less destructive than rebuilding DFSR and directly addresses the identity that your 4625 event says is failing.

    Before doing even that, though, there’s one field from Event 4625 that would be very useful: SubStatus. 0xC000006D is only the generic STATUS_LOGON_FAILURE code. Microsoft documents that SubStatus usually indicates whether the failure is due to a bad password, an unknown account, a logon restriction, etc.

    Thanks,

    James

    Was this answer helpful?

    0 comments No comments

  3. Ilias P. Misailidis 0 Reputation points
    2026-09-28T14:13:32.5066667+00:00

    Issue 1 – DFSR

    ·         DFSR Event ID 5002 is generated for the replication group.

    ·         The event reports Error 5: Access is denied while communicating with the replication partner.

    ·         DFSR debug logs repeatedly show EstablishConnection failures with Error 5 (0x5) / Access is denied.

    ·         The debug log shows the expected partner DNS name and attempts to establish the DFSR connection.

    ·         DFSR configuration and replicated-folder configuration are present on the server.

    ·         Kerberos tickets can be obtained for CIFS, and basic domain connectivity/secure-channel checks have not indicated a simple network outage.

    Representative event:

    DFSR Event ID: 5002 Error: 5 (Access is denied) The DFS Replication service encountered an error communicating with partner <PARTNER> for replication group <GROUP>.

    Question for Microsoft: before performing a non-authoritative DFSR restore (D2), which AD/Kerberos/DFSR metadata checks do you recommend to distinguish a stale post-upgrade member/connection object from an SPN or machine-account authentication issue? If D2 is required, please provide the supported Windows Server 2025 procedure and validation steps.

    Issue 2 – DHCP Failover

    ·         Both DHCP failover relationships are visible through Get-DhcpServerv4Failover and report State = Normal.

    ·         The environment uses Hot Standby failover.

    ·         TCP port 647 connectivity between the DHCP partners succeeds.

    ·         An explicit forced failover replication attempt fails before replication starts.

    Representative command and error:

    Invoke-DhcpServerv4FailoverReplication -ComputerName "<DHCP-SERVER>" -Force Failed to enumerate failover relationships on DHCP server <DHCP-SERVER>. FullyQualifiedErrorId: WIN32 5 ... Error: Access Denied

    ·         The failover configuration has also shown an inconsistency where one partner is represented by FQDN in one context and by IP address in another.

    ·         Get-DhcpServerInDC successfully returns the domain DHCP authorization list.

    Question for Microsoft: can WIN32 5 during failover-relationship enumeration be caused by stale DHCP authorization/NetServices metadata or inconsistent partner identity after an in-place upgrade, even when the relationship state is Normal and TCP 647 succeeds? Please provide the supported remediation sequence and confirm whether the failover relationship must be recreated if metadata normalization does not resolve it.

    Checks already performed

    ·         DFSR Event Log reviewed.

    ·         DFSR debug log reviewed and Access Denied confirmed during connection establishment.

    ·         DFSR configuration/topology queried.

    ·         Kerberos ticket cache reviewed.

    ·         Relevant SPNs reviewed on the affected server objects; domain-wide duplicate-SPN validation is being coordinated with AD administrators.

    ·         DHCP failover state queried.

    ·         DHCP TCP 647 connectivity tested successfully.

    ·         DHCP AD authorization list queried.

    ·         Forced DHCP failover replication attempted and WIN32 5 reproduced.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.