So a while ago I posted how to find NetBIOS in domain based DFS’s. So I wrote how to find NetBIOS targets on standalone DFS machines.

Script

$Servername = 'localhost'
Foreach ($DFSroot in (Get-DfsnRoot -ComputerName $servername))
{
  ForEach ($DFSFolder in (Get-DfsnFolder -Path "$($DFSroot.Path)\*"| Get-DfsnFolderTarget))
  {
    if ($DFSFolder.TargetPath -notmatch '\\\\[^.]+\..+\\.*')
    {
      Write-Host "$($DFSFolder.Path) => $($DFSFolder.TargetPath)"
    }
  }
}

You can run it remotely if you change the $servername variable.