Skip to content

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
tpcarman committed Dec 2, 2021
2 parents bafcc02 + b85e344 commit 8604a39
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 6 deletions.
1 change: 1 addition & 0 deletions AsBuiltReport.Microsoft.AD.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
},
"CA": {
"Status": true
"Statistics": true
}
}
}
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,4 +178,4 @@
- Added Site Replication Summary
- Added Site Replication Failure Summary
- Added Group Policy Objects Summary
- Added Organizational Unit summary
- Added Organizational Unit summary
9 changes: 7 additions & 2 deletions Src/Private/Get-AbrADDHCPInfrastructure.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ function Get-AbrADDHCPInfrastructure {
$TableParams['Caption'] = "- $($TableParams.Name)"
}
$OutObj | Table @TableParams

Section -Style Heading6 'Service Database' {
Paragraph "The following section provides a summary of the DHCP servers service database information on $($Domain.ToString().ToUpper())."
BlankLine
Expand Down Expand Up @@ -104,10 +105,11 @@ function Get-AbrADDHCPInfrastructure {
}
}
catch {

Write-PscriboMessage -IsWarning "$($_.Exception.Message) (Service Database)"

}
}
}

$TableParams = @{
Name = "DHCP Servers Database Information - $($Domain.ToString().ToUpper())"
Expand All @@ -119,6 +121,7 @@ function Get-AbrADDHCPInfrastructure {
}
$OutObj | Table @TableParams
}

Section -Style Heading6 'Dynamic DNS credentials' {
Paragraph "The following section provides a summary of the DHCP Servers Dynamic DNS registration credentials information on $($Domain.ToString().ToUpper())."
BlankLine
Expand All @@ -140,13 +143,15 @@ function Get-AbrADDHCPInfrastructure {
}
}
catch {

Write-PscriboMessage -IsWarning "$($_.Exception.Message) (Dynamic DNS credentials)"

}
}
}
if ($HealthCheck.DHCP.BP) {
$OutObj | Where-Object { $_.'User Name' -eq "-"} | Set-Style -Style Warning -Property 'User Name','Domain Name'
}

$TableParams = @{
Name = "DHCP Servers Dynamic DNS Credentials Information - $($Domain.ToString().ToUpper())"
List = $false
Expand Down
1 change: 0 additions & 1 deletion Src/Private/Get-AbrADDHCPv4Scope.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ function Get-AbrADDHCPv4Scope {
}
catch {
Write-PscriboMessage -IsWarning "$($_.Exception.Message) (IPv4 Scope Summary)"

}
}

Expand Down
2 changes: 1 addition & 1 deletion Src/Private/Get-AbrADDHCPv6Statistic.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ function Get-AbrADDHCPv6Statistic {
}
catch {
Write-PscriboMessage -IsWarning "$($_.Exception.Message) (IPv6 Service Statistics Summary)"
}
}
}

if ($HealthCheck.DHCP.Statistics) {
$OutObj | Where-Object { $_.'Percentage In Use' -gt 95} | Set-Style -Style Warning -Property 'Percentage Available','Percentage In Use'
Expand Down
3 changes: 3 additions & 0 deletions Src/Private/Get-AbrADDNSInfrastructure.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ function Get-AbrADDNSInfrastructure {
}
$OutObj | Table @TableParams
}

if ($InfoLevel.DNS -ge 2) {
Section -Style Heading6 "Domain Controller DNS IP Configuration" {
Paragraph "The following section provides information of the DNS IP Configuration."
Expand Down Expand Up @@ -162,6 +163,7 @@ function Get-AbrADDNSInfrastructure {
}
}
}

if ($InfoLevel.DNS -ge 2) {
Section -Style Heading6 "Response Rate Limiting (RRL)" {
Paragraph "The following section provides a summary of the DNS Response Rate Limiting configuration."
Expand Down Expand Up @@ -254,6 +256,7 @@ function Get-AbrADDNSInfrastructure {
}
}
}

Section -Style Heading6 "Forwarder Options" {
Paragraph "The following section provides a summary of the DNS Forwarder configuration."
BlankLine
Expand Down
5 changes: 5 additions & 0 deletions Src/Private/Get-AbrADDNSZone.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ function Get-AbrADDNSZone {
}
$OutObj | Table @TableParams
}

if ($InfoLevel.DNS -ge 2) {
try {
$DCPssSession = New-PSSession $DC -Credential $Cred -Authentication Default
Expand Down Expand Up @@ -114,6 +115,7 @@ function Get-AbrADDNSZone {
Write-PscriboMessage -IsWarning "$($_.Exception.Message) (Zone Delegation)"
}
}

if ($InfoLevel.DNS -ge 2) {
try {
$DCPssSession = New-PSSession $DC -Credential $Cred -Authentication Default
Expand Down Expand Up @@ -153,6 +155,7 @@ function Get-AbrADDNSZone {
$OutObj | Table @TableParams
}
}
Remove-PSSession -Session $DCPssSession
}
catch {
Write-PscriboMessage -IsWarning "$($_.Exception.Message) (Zone Transfers)"
Expand Down Expand Up @@ -197,6 +200,7 @@ function Get-AbrADDNSZone {
$OutObj | Table @TableParams
}
}

Section -Style Heading5 "$($DC.ToString().ToUpper().Split(".")[0]) Conditional Forwarder" {
Paragraph "The following section provides a summary of the DNS Conditional Forwarder information."
BlankLine
Expand Down Expand Up @@ -233,6 +237,7 @@ function Get-AbrADDNSZone {
}
$OutObj | Table @TableParams
}
Remove-PSSession -Session $DCPssSession
}
if ($InfoLevel.DNS -ge 2) {
Section -Style Heading6 "$($DC.ToString().ToUpper().Split(".")[0]) Zone Scope Aging Properties" {
Expand Down
2 changes: 2 additions & 0 deletions Src/Private/Get-AbrADDomainController.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ function Get-AbrADDomainController {
}
$OutObj | Table @TableParams
}

if ($InfoLevel.Domain -ge 2) {
Write-PscriboMessage "Collecting AD Domain Controller Hardware information for domain $Domain"
Section -Style Heading6 'Hardware Inventory' {
Expand Down Expand Up @@ -183,6 +184,7 @@ function Get-AbrADDomainController {
$OutObj | Table @TableParams
}
}

Write-PscriboMessage "Collecting AD Domain Controller Time Source information."
Section -Style Heading6 'Time Source Information' {
Paragraph "The following section provides a summary of the Domain Controller Time Source configuration on $($Domain.ToString().ToUpper())."
Expand Down
1 change: 0 additions & 1 deletion Src/Private/SharedUtilsFunctions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ function ConvertTo-TextYN {
Position = 0,
Mandatory)]
[AllowEmptyString()]

[string]
$TEXT
)
Expand Down
2 changes: 2 additions & 0 deletions Src/Public/Invoke-AsBuiltReport.Microsoft.AD.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ function Invoke-AsBuiltReport.Microsoft.AD {
#---------------------------------------------------------------------------------------------#
# Domain Section #
#---------------------------------------------------------------------------------------------#

if ($InfoLevel.Domain -ge 1) {
Section -Style Heading3 "Active Directory Domain Information" {
if ($Options.ShowDefinitionInfo) {
Expand Down Expand Up @@ -308,6 +309,7 @@ function Invoke-AsBuiltReport.Microsoft.AD {
#---------------------------------------------------------------------------------------------#
# Certificate Authority Section #
#---------------------------------------------------------------------------------------------#

if ($InfoLevel.CA -ge 1) {
try {
Section -Style Heading3 "Certificate Authority Summary" {
Expand Down

0 comments on commit 8604a39

Please sign in to comment.