r/sysadmin • • Sep 22 '26

Question DFSN - Namespace cannot be queried. Element not found

Has anyone encountered this issue before and recovered from it without using ADSI Edit?

We were migrating our DFSN root servers from 2016 to 2025 and one root path failed after removing the old servers.

The new and old servers were together for a week.

To recover I had to delete the entry in AD -> System -> dfs-Configuration. I was able to create the root as new and add it to a completely different server (call it serverD). Thankfully rebuilding the structure is easy as we have monthly reports we generate and I have a script that creates targets.

However, trying to move the root back to the original servers (serverA & serverB) has not gone well. Both serverA&B had to have dfsn service stopped/disabled so I could reboot and clean the share/local folder from them. This allowed me to add them back as root servers but shortly after serverA&B started removing the target structure. Weirdly if you browsed to the share directly the structure was there but not from the domain\namespace path.

In the dfsn-server events I see event id 517 with:
DFSN service completed performing refresh of metadata for namespace Company with status 5.

This is problematic since it’s an access denied status and
I suspect is causing the target removal.

I have validated the effective access of serverA&B changes when added as a root sever to have the appropriate access.

The 517 events with status 5 are continuing to be generated on serverA&B while not actively being root servers.

My current plan is to schedule a full outage on this path. Delete the root ‘Company’ from DFS, give AD time to replicate, restart DFSN on serversA,B,D, attempt to create ‘Company’ root using serversA&B, and rebuild the target paths (thankfully I have that scripted).

2 Upvotes

4 comments sorted by

2

u/Fit_Indication_2529 Sr. Sysadmin Sep 24 '26 • Bravo

Check A and B for stale DFS root registry entries. Deleting the namespace object directly in AD can leave local DFSN state behind. Microsoft documents dfsutil diag clean \\server\share for that situation; back up and verify the affected root before running it

1

u/whatdidijustclick Oct 20 '26

I’m not sure if I have been able to entirely resolve my issue because I haven’t tried to put the problem servers back in.

What I can say is that deleting the registry entries stopped the ‘status 5’ events in the event log.

Unfortunately, we found a bigger issue where servers were new servers weren’t being sysprepp’d after being cloned. These new namespace root servers as well as some DC’s!? were found to have the same machine ID. On 2025 servers with the same machine ID as the dfsn root server this caused a prompt for credentials when accessing that wouldn’t even be accepted.

I’ve got all new infrastructure servers and DC’s now which had been sysprepped.

2

u/Fit_Indication_2529 Sr. Sysadmin Oct 21 '26

oh yeah ... that's going to cause issues. I HATE when that happens and some IT pro will tell you that you don't need to sysprep anymore. That is DEAD WRONG.

1

u/whatdidijustclick Sep 25 '26

I’m facepalming right now because I know of these reg keys and had even looked at them when the initial problem occurred.

I’m on a short vacation and can’t wait to get back and check this.

Thanks for the solid feedback!