DFSR: From UID to File Path in one-easy-step

If you’ve spent any time in the DFSR debug logs, you’ll probably found that getting a file’s full path is a bit of a pain. You didn’t find anything because the debug logs won’t tell you. DFSR uses an ESE database to keep track of file and folder paths as part of their IDRECORD information. […]

If you’ve spent any time in the DFSR debug logs, you’ll probably found that getting a file’s full path is a bit of a pain. You didn’t find anything because the debug logs won’t tell you. DFSR uses an ESE database to keep track of file and folder paths as part of their IDRECORD information. If you were to examine the database rows directly, you’ll find that its tables don’t contain the full path either. Instead, a record of each ‘object’ (file or folder) is stored as a Unique Identifier (UID) and its relationship with its parent and children UID’s is stored as well. So what if you want to actually get the real path of a file?

In Windows Server 2003 R2 and Windows Server 2008: Wmic.exe /namespace:\\root\microsoftdfs path dfsridrecordinfo.Uid="your uid here" call getfullfilepath
In Windows Server 2008 R2: DFSRDIAG IDRECORD /UID:some_uid