5

Given a DFS path, how can I programatically determine which physical file server it maps to?

Chris
  • 3,664
  • 6
  • 34
  • 44

2 Answers2

1

Use NetDfsGetInfo()

Chris
  • 3,664
  • 6
  • 34
  • 44
  • the above link is 404. here is a working one https://learn.microsoft.com/en-us/windows/desktop/api/lmdfs/nf-lmdfs-netdfsgetinfo – CJ Harmath Oct 04 '18 at 15:24
1

Powershell:

Get-DfsnFolderTarget -Path "\dfsnamespace\dfsshare"

Tony
  • 51
  • 6