Get all DFS Folder Targets of a DFS Path
$DFSPath =
"\\Domainfqdn\Folder\*"
$DFSPath
$DFSNFolders = Get-DfsnFolder $DFSPath
foreach($DFSNFolder in $DFSNFolders )
{
$DFSTarget = Get-DfsnFolderTarget $DFSNFolder.Path | Select
Path,TargetPath
$DFSTarget | Export-Csv
"c:\temp\DFSDetails.csv" -NoTypeInformation -Append
}
No comments:
Post a Comment