Last active
March 19, 2021 01:55
-
-
Save dstreefkerk/cc3c1eaf61d301b2e422a61b479c09b0 to your computer and use it in GitHub Desktop.
Get a list of active DFS folder targets under a specific DFS root
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-DfsnFolder -Path \\internal.contoso.com\dfsroot\* | Get-DfsnFolderTarget | ? {$_.State -eq "Online"} | Group-Object -Property Path | ForEach-Object {$_.group[0]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment