#https://deployhappiness.com/series/folder-redirection/
#https://adamtheautomator.com/dfs-powershell-scripts/
#https://github.com/MicrosoftDocs/windows-powershell-docs/blob/master/docset/windows/dfsn/DFSN.md
#https://webcache.googleusercontent.com/search?q=cache:tU2AOgUZ89YJ:https://github.com/MicrosoftDocs/windows-powershell-docs/blob/master/docset/winserver2019-ps/dfsn/DFSN.md+&cd=1&hl=de&ct=clnk&gl=de
Install-WindowsFeature FS-DFS-Namespace,RSAT-DFS-Mgmt-Con
Get-DfsnRoot

$Domain = 'tech.io'
(Get-DfsnRoot -Domain $Domain).Where( {$_.State -eq 'Online'} ) | Select-Object -ExpandProperty Path
Get-DfsnFolder -Path "\\$Domain\AppRoot\*" | Select-Object -ExpandProperty Path
Get-DfsnFolder -Path "\\$Domain\DFSRoot\*" | Select-Object -ExpandProperty Path

\\file\files$\data_shared
\\file\files$\finance
\\file\files$\management
\\file\files$\ncs

New-ADGroup FileDataSharedRo -GroupScope Global -GroupCategory Security
New-ADGroup FileDataSharedRw -GroupScope Global -GroupCategory Security
New-ADGroup FileFinanceRo -GroupScope Global -GroupCategory Security
New-ADGroup FileFinanceRw -GroupScope Global -GroupCategory Security
New-ADGroup FileManagamentRo -GroupScope Global -GroupCategory Security
New-ADGroup FileManagamentRw -GroupScope Global -GroupCategory Security
New-ADGroup FileNcsRo -GroupScope Global -GroupCategory Security
New-ADGroup FileNcsRw -GroupScope Global -GroupCategory Security


 

