Skip to content

Commit

Permalink
Small update to improve output and importance
Browse files Browse the repository at this point in the history
  • Loading branch information
PrzemyslawKlys committed Aug 6, 2024
1 parent ba9790f commit 9117a41
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
9 changes: 4 additions & 5 deletions Private/SourcesDomain/DNSForwarders.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Source = @{
Name = "DNS Forwarders"
Data = {
[Array] $Forwarders = Get-WinDnsServerForwarder -Forest $ForestName -Domain $Domain -WarningAction SilentlyContinue
[Array] $Forwarders = Get-WinADDnsServerForwarder -Forest $ForestName -Domain $Domain -WarningAction SilentlyContinue
if ($Forwarders.Count -gt 1) {
$Comparision = Compare-MultipleObjects -Objects $Forwarders -FormatOutput -CompareSorted:$true -ExcludeProperty GatheredFrom -SkipProperties -Property 'IpAddress' -WarningAction SilentlyContinue
[PSCustomObject] @{
Expand All @@ -27,10 +27,9 @@
}
}
Details = [ordered] @{
Area = 'Configuration'
Category = ''
Severity = ''
Importance = 0
Area = 'DNS'
Category = 'Configuration'
Importance = 3
Description = ''
Resolution = ''
Resources = @(
Expand Down
9 changes: 4 additions & 5 deletions Private/SourcesDomain/DNSScavengingForPrimaryDNSServer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@
Source = @{
Name = "DNS Scavenging - Primary DNS Server"
Data = {
Get-WinDnsServerScavenging -Forest $ForestName -IncludeDomains $Domain
Get-WinADDnsServerScavenging -Forest $ForestName -IncludeDomains $Domain
}
Details = [ordered] @{
Area = ''
Category = ''
Severity = ''
Importance = 0
Area = 'DNS'
Category = 'Configuration'
Importance = 3
Description = ''
Resolution = ''
Resources = @(
Expand Down

0 comments on commit 9117a41

Please sign in to comment.