From 794f6997b8a75f6652d5abcc092eb9dca3612e78 Mon Sep 17 00:00:00 2001 From: Przemyslaw Klys Date: Sun, 2 Aug 2020 14:01:05 +0200 Subject: [PATCH] Some updates to Get-GPOZaurrSysvolDFSR --- Public/Get-GPOZaurrSysvolDFSR.ps1 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Public/Get-GPOZaurrSysvolDFSR.ps1 b/Public/Get-GPOZaurrSysvolDFSR.ps1 index 36b9ae4..e7db0a4 100644 --- a/Public/Get-GPOZaurrSysvolDFSR.ps1 +++ b/Public/Get-GPOZaurrSysvolDFSR.ps1 @@ -3,14 +3,11 @@ function Get-GPOZaurrSysvolDFSR { param( [alias('ForestName')][string] $Forest, [string[]] $ExcludeDomains, - [string[]] $ExcludeDomainControllers, [alias('Domain', 'Domains')][string[]] $IncludeDomains, - [alias('DomainControllers')][string[]] $IncludeDomainControllers, - [switch] $SkipRODC, [System.Collections.IDictionary] $ExtendedForestInformation, [string] $SearchDFSR = 'SYSVOL Share' ) - $ForestInformation = Get-WinADForestDetails -Forest $Forest -IncludeDomains $IncludeDomains -ExcludeDomains $ExcludeDomains -ExcludeDomainControllers $ExcludeDomainControllers -IncludeDomainControllers $IncludeDomainControllers -SkipRODC:$SkipRODC -ExtendedForestInformation $ExtendedForestInformation + $ForestInformation = Get-WinADForestDetails -Forest $Forest -IncludeDomains $IncludeDomains -ExcludeDomains $ExcludeDomains -ExtendedForestInformation $ExtendedForestInformation foreach ($Domain in $ForestInformation.Domains) { Write-Verbose "Get-GPOZaurrSysvolDFSR - Processing $Domain" $QueryServer = $ForestInformation['QueryServers']["$Domain"].HostName[0]