r/sysadmin • • 12d ago

Question [Active Directory] SYSVOL access failure on a single domain-joined device

Hey everyone!

I've been running into an issue that I haven't experienced before. We're currently working on a migration, and I've noticed that, during the process, the affected device occasionally loses all access to `\\XYZ.local\SYSVOL` oddly direct access via \\srv.ad-01.local\SYSVOL works.

We first noticed this when I tried to apply some GPOs and the process failed.

No other devices were affected. The same user was able to access the directory from another device without any issues. Even a Domain Admin was unable to access it from the affected device while the issue was occurring.

After around 15–20 minutes, access is fully restored on its own.

I'm not entirely sure what triggers this or what could be causing it.

We do execute `dsregcmd /leave`, but as far as I understand, this shouldn't affect on-premises AD and should only impact the Entra ID side of things.

I've tried troubleshooting this, but haven't really gotten anywhere. The lack of any actual error messages makes it quite difficult to investigate.

I'd be interested in understanding what's happening under the hood, so if anyone has experienced something similar or managed to resolve it, I'd appreciate any input!

- NETLOGON remains accessible throughout the issue.

- Mapped network drives continue to work.

- The issue only affects the device in question, and access restores itself after approximately 15–20 minutes.

2 Upvotes

9 comments sorted by

10

u/davy_crockett_slayer 12d ago edited 12d ago

This is DFS, not permissions. \\XYZ.local\SYSVOL is a domain-based DFS namespace, so hitting it makes your client ask a DC for a referral and then connect to whatever DC it gets handed. \\srv.ad-01.local\SYSVOL works because that’s a direct SMB path to one specific box, no referral involved. That split gets my spidey senses tingling.

The sysvol referral has a fixed 900-second (15 min) TTL baked into the protocol. So once your client caches a referral pointing at a DC that can’t actually serve sysvol, it’s stuck using that bad cache entry until it ages out, then it re-queries, lands on a healthy DC, and you’re back. That’s also why a Domain Admin can’t get in from that box either, it’s not an auth problem, the machine is just holding a poisoned referral. The same user works elsewhere because the other machine has its own cache.

During a migration the usual cause is a DC that’s been promoted (or is mid-demotion) and isn’t actually sharing sysvol yet, DFSR hasn’t finished its initial sync, so SYSVOL and NETLOGON aren’t published on it. When your client’s referral happens to land on that DC, you get your 15 minutes of nothing.

Next time it’s happening, before it clears, run these commands:

  • dfsutil /pktinfo --> shows the cached referral and which DC it’s pointing at for \\XYZ.local\SYSVOL
  • dfsutil /pktflush --> dump the cache. If sysvol comes back instantly, that’s your proof it’s referral caching
  • nltest /dsgetdc:XYZ.local /force --> see which DC you’re actually locating

Then run net share on each DC to confirm SYSVOL and NETLOGON are really there, dcdiag /test:sysvolcheck /test:netlogons, and dfsrmig /getmigrationstate plus the DFSR event log for the sysvol content set. I’d bet you find one DC that’s up but not serving sysvol.

And your read on dsregcmd /leave is correct, ignore it here. That only tears down the Entra/hybrid join, it doesn’t touch on-prem domain membership or DFS referrals.

Reference on sysvol TTL:

<44> Section 3.3.5.4: Windows sets the TimeToLive field to a fixed value of 900 seconds.

The TimeToLive field SHOULD be set to a nonzero time-out value in seconds.<44> When there is more than one referral entry, the TimeToLive field of each referral entry MUST be the same.

https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-dfsc/09cf3a4c-9737-4876-8fb2-2243cbfebf3e#Appendix_A_44

1

u/Z_A_N_G_E_R 12d ago

I'll check it out when we pick this up again. It's kind of odd that we only run into this error shortly after executing dsregcmd /leave.

I'll report back whether it worked. I honestly can't remember if I already tried dfsutil /pktflush. We eventually just gave up troubleshooting it and swallowed the pill, waiting another 15–20 minutes for each device.

Thank you so far! :)

1

u/davy_crockett_slayer 12d ago

No problem!

dsregcmd /leave won’t break sysvol on its own, but it nudges Netlogon and the DC locator to re-evaluate, and your client goes and pulls a fresh sysvol referral right after. In a healthy domain that’s a non-event. Mid-migration, if the DC it re-selects is the one not serving sysvol yet, that fresh referral lands on the bad box and you’re stuck with it for the full 900 seconds.

Easy way to catch it red-handed next time, right after the leave and before you wait it out run dfsutil /pktinfo and see which DC it cached for \\XYZ.local\SYSVOL. Then hit that exact DC directly, \\thatdc\SYSVOL. I’d bet it fails while a known-good DC’s sysvol is fine. That’s your proof in about 30 seconds.

Then dfsutil /pktflush and re-hit \\XYZ.local\SYSVOL. Odds are the re-query lands on a healthy DC and you skip the 15-minute wait. It’s a re-roll, not a guaranteed fix, if it happens to land on the bad DC again you’re back to waiting, but it beats swallowing the pill every single time. The actual fix is getting that DC to serve sysvol, or pulling it from rotation until DFSR finishes its initial sync.

One honest caveat, the “leave re-selects the DC” bit is my read of the behavior, not something I can hand you a doc for, so confirm it with pktinfo before you bank on it. Report back which DC it points at, curious whether it’s the one you’d expect.

1

u/Master-IT-All 12d ago

Does the device have multiple network adapters?

Are all DNS Servers listed on the device domain controllers?

On all the domain controllers listed, are all Zones properly replicated and showing the same results for XYX.local?

This sounds like a DNS caused error where a reply given by a DNS server is missing/incorrect. Multi-homing might contribute, and you definitely CANNOT have external DNS servers listed on a domain joined device.

2

u/Z_A_N_G_E_R 12d ago

Hi!

No multiple network adapters.

Yes, all listed DNS servers were domain controllers.

The device had the correct DNS entries, and I also flushed the DNS cache. However, since it was able to resolve the hostname, I don't think DNS was the issue. (for once 😉)

It's kind of odd that NETLOGON wasn't affected, but SYSVOL was. So the post by u/davy_crockett_slayer makes sense. I'll check it out when we continue the migration and report back if that turns out to be the exact issue.

The issue resolved itself after 15–20 minutes. All I was getting was an "Access denied" error and a login prompt. So we simply waited until it resolved itself and continued with the next device.

1

u/Master-IT-All 12d ago

NETLOGON is NT era, so does not utilize DFS. You'll never see end points trying for \\domain.local\netlogon, they'll always connect to the authenticating DC for NETLOGON.

-If this isn't happening more than once, then I'd just chock it up under the heading, "shit happens" and move on

2

u/Asleep_Spray274 12d ago

Honestly, on one device, screw that

format c:\

2

u/The_Berry DevOps 11d ago

Fix your dfs-n referrals. You have it pointed to probably more than one server and one of them are dead

1

u/Optanik 12d ago

The domain-name path going through DFS referrals while the direct server path works points at the referral or Kerberos side, not the share itself, and the 15-20 minutes smells like a cache expiring. Check the SYSVOL referral TTL on your DCs rather than trusting my memory of the default. Next time it happens, run these on the affected box before it recovers:

  • dfsutil cache referral, or dfsutil /pktinfo (needs the RSAT DFS tools). See which DC it's being referred to.
  • nltest /dsgetdc:XYZ.local and nslookup XYZ.local. During a migration it's common for the domain A records or the site mapping to still point at an old or decommissioning DC.
  • klist. Look for a cifs/ ticket for that target. Since UNC hardened paths require mutual auth on SYSVOL/NETLOGON, a Kerberos failure there fails silently while NTLM to the server name still works.

If dfsutil /pktflush plus klist purge fixes it immediately, you've confirmed it's a stale referral or ticket. Also check whether your migration script does anything right after dsregcmd /leave, like a time change, a DNS change or a network reset, that would line up with it.