diff --git a/Private/Test-SysvolFolders.ps1 b/Private/Test-SysvolFolders.ps1 index b956b2b..b87414c 100644 --- a/Private/Test-SysvolFolders.ps1 +++ b/Private/Test-SysvolFolders.ps1 @@ -96,7 +96,7 @@ } } # Now we need to list thru Sysvol files and fine those that do not exists as GPO and create dummy GPO objects to show orphaned gpos - Write-Verbose "Get-GPOZaurrBroken - Processing SYSVOL differences and creating dummy objects" + Write-Verbose "Get-GPOZaurrBroken - Processing SYSVOL differences" foreach ($_ in $Differences.Keys) { if ($Differences[$_] -in 'Not available in AD', 'Permissions issue') { $FullPath = $SysvolHash[$_].FullName diff --git a/Public/Remove-GPOZaurrBroken.ps1 b/Public/Remove-GPOZaurrBroken.ps1 index a772a33..b541c89 100644 --- a/Public/Remove-GPOZaurrBroken.ps1 +++ b/Public/Remove-GPOZaurrBroken.ps1 @@ -35,7 +35,7 @@ } | Select-Object | Select-Object -First $LimitProcessing | ForEach-Object { $GPO = $_ if ($GPO.Status -eq 'Not available in AD') { - Write-Verbose "Remove-GPOZaurrBroken - Processing $($GPO.Path)" + Write-Verbose "Remove-GPOZaurrBroken - Processing [AD] $($GPO.Path)" if ($BackupFinalPath) { Try { Write-Verbose "Remove-GPOZaurrBroken - Backing up $($GPO.Path)" @@ -55,6 +55,7 @@ } } } elseif ($GPO.Status -eq 'Not available on SYSVOL') { + Write-Verbose "Remove-GPOZaurrBroken - Processing [SYSVOL] $($GPO.DistinguishedName)" try { $ExistingObject = Get-ADObject -Identity $GPO.DistinguishedName -Server $GPO.DomainName -ErrorAction Stop } catch {