r/sysadmin • u/Z_A_N_G_E_R • 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.
10
u/davy_crockett_slayer 12d ago edited 12d ago
This is DFS, not permissions.
\\XYZ.local\SYSVOLis 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\SYSVOLworks 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\SYSVOLdfsutil /pktflush--> dump the cache. If sysvol comes back instantly, that’s your proof it’s referral cachingnltest /dsgetdc:XYZ.local /force--> see which DC you’re actually locatingThen run
net shareon each DC to confirm SYSVOL and NETLOGON are really there,dcdiag /test:sysvolcheck /test:netlogons, anddfsrmig /getmigrationstateplus 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 /leaveis 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:
https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-dfsc/09cf3a4c-9737-4876-8fb2-2243cbfebf3e#Appendix_A_44
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/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, ordfsutil /pktinfo(needs the RSAT DFS tools). See which DC it's being referred to.nltest /dsgetdc:XYZ.localandnslookup 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 /pktflushplusklist purgefixes it immediately, you've confirmed it's a stale referral or ticket. Also check whether your migration script does anything right afterdsregcmd /leave, like a time change, a DNS change or a network reset, that would line up with it.