Skip to content

Commit 8604a39

Browse files
authored
Merge branch 'master' into dev
2 parents bafcc02 + b85e344 commit 8604a39

10 files changed

+22
-6
lines changed

AsBuiltReport.Microsoft.AD.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
},
4545
"CA": {
4646
"Status": true
47+
"Statistics": true
4748
}
4849
}
4950
}

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,4 +178,4 @@
178178
- Added Site Replication Summary
179179
- Added Site Replication Failure Summary
180180
- Added Group Policy Objects Summary
181-
- Added Organizational Unit summary
181+
- Added Organizational Unit summary

Src/Private/Get-AbrADDHCPInfrastructure.ps1

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ function Get-AbrADDHCPInfrastructure {
7373
$TableParams['Caption'] = "- $($TableParams.Name)"
7474
}
7575
$OutObj | Table @TableParams
76+
7677
Section -Style Heading6 'Service Database' {
7778
Paragraph "The following section provides a summary of the DHCP servers service database information on $($Domain.ToString().ToUpper())."
7879
BlankLine
@@ -104,10 +105,11 @@ function Get-AbrADDHCPInfrastructure {
104105
}
105106
}
106107
catch {
108+
107109
Write-PscriboMessage -IsWarning "$($_.Exception.Message) (Service Database)"
108110

109-
}
110111
}
112+
}
111113

112114
$TableParams = @{
113115
Name = "DHCP Servers Database Information - $($Domain.ToString().ToUpper())"
@@ -119,6 +121,7 @@ function Get-AbrADDHCPInfrastructure {
119121
}
120122
$OutObj | Table @TableParams
121123
}
124+
122125
Section -Style Heading6 'Dynamic DNS credentials' {
123126
Paragraph "The following section provides a summary of the DHCP Servers Dynamic DNS registration credentials information on $($Domain.ToString().ToUpper())."
124127
BlankLine
@@ -140,13 +143,15 @@ function Get-AbrADDHCPInfrastructure {
140143
}
141144
}
142145
catch {
146+
143147
Write-PscriboMessage -IsWarning "$($_.Exception.Message) (Dynamic DNS credentials)"
144148

145-
}
146149
}
150+
}
147151
if ($HealthCheck.DHCP.BP) {
148152
$OutObj | Where-Object { $_.'User Name' -eq "-"} | Set-Style -Style Warning -Property 'User Name','Domain Name'
149153
}
154+
150155
$TableParams = @{
151156
Name = "DHCP Servers Dynamic DNS Credentials Information - $($Domain.ToString().ToUpper())"
152157
List = $false

Src/Private/Get-AbrADDHCPv4Scope.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ function Get-AbrADDHCPv4Scope {
5757
}
5858
catch {
5959
Write-PscriboMessage -IsWarning "$($_.Exception.Message) (IPv4 Scope Summary)"
60-
6160
}
6261
}
6362

Src/Private/Get-AbrADDHCPv6Statistic.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ function Get-AbrADDHCPv6Statistic {
5454
}
5555
catch {
5656
Write-PscriboMessage -IsWarning "$($_.Exception.Message) (IPv6 Service Statistics Summary)"
57-
}
5857
}
58+
}
5959

6060
if ($HealthCheck.DHCP.Statistics) {
6161
$OutObj | Where-Object { $_.'Percentage In Use' -gt 95} | Set-Style -Style Warning -Property 'Percentage Available','Percentage In Use'

Src/Private/Get-AbrADDNSInfrastructure.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ function Get-AbrADDNSInfrastructure {
6868
}
6969
$OutObj | Table @TableParams
7070
}
71+
7172
if ($InfoLevel.DNS -ge 2) {
7273
Section -Style Heading6 "Domain Controller DNS IP Configuration" {
7374
Paragraph "The following section provides information of the DNS IP Configuration."
@@ -162,6 +163,7 @@ function Get-AbrADDNSInfrastructure {
162163
}
163164
}
164165
}
166+
165167
if ($InfoLevel.DNS -ge 2) {
166168
Section -Style Heading6 "Response Rate Limiting (RRL)" {
167169
Paragraph "The following section provides a summary of the DNS Response Rate Limiting configuration."
@@ -254,6 +256,7 @@ function Get-AbrADDNSInfrastructure {
254256
}
255257
}
256258
}
259+
257260
Section -Style Heading6 "Forwarder Options" {
258261
Paragraph "The following section provides a summary of the DNS Forwarder configuration."
259262
BlankLine

Src/Private/Get-AbrADDNSZone.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ function Get-AbrADDNSZone {
7171
}
7272
$OutObj | Table @TableParams
7373
}
74+
7475
if ($InfoLevel.DNS -ge 2) {
7576
try {
7677
$DCPssSession = New-PSSession $DC -Credential $Cred -Authentication Default
@@ -114,6 +115,7 @@ function Get-AbrADDNSZone {
114115
Write-PscriboMessage -IsWarning "$($_.Exception.Message) (Zone Delegation)"
115116
}
116117
}
118+
117119
if ($InfoLevel.DNS -ge 2) {
118120
try {
119121
$DCPssSession = New-PSSession $DC -Credential $Cred -Authentication Default
@@ -153,6 +155,7 @@ function Get-AbrADDNSZone {
153155
$OutObj | Table @TableParams
154156
}
155157
}
158+
Remove-PSSession -Session $DCPssSession
156159
}
157160
catch {
158161
Write-PscriboMessage -IsWarning "$($_.Exception.Message) (Zone Transfers)"
@@ -197,6 +200,7 @@ function Get-AbrADDNSZone {
197200
$OutObj | Table @TableParams
198201
}
199202
}
203+
200204
Section -Style Heading5 "$($DC.ToString().ToUpper().Split(".")[0]) Conditional Forwarder" {
201205
Paragraph "The following section provides a summary of the DNS Conditional Forwarder information."
202206
BlankLine
@@ -233,6 +237,7 @@ function Get-AbrADDNSZone {
233237
}
234238
$OutObj | Table @TableParams
235239
}
240+
Remove-PSSession -Session $DCPssSession
236241
}
237242
if ($InfoLevel.DNS -ge 2) {
238243
Section -Style Heading6 "$($DC.ToString().ToUpper().Split(".")[0]) Zone Scope Aging Properties" {

Src/Private/Get-AbrADDomainController.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ function Get-AbrADDomainController {
6969
}
7070
$OutObj | Table @TableParams
7171
}
72+
7273
if ($InfoLevel.Domain -ge 2) {
7374
Write-PscriboMessage "Collecting AD Domain Controller Hardware information for domain $Domain"
7475
Section -Style Heading6 'Hardware Inventory' {
@@ -183,6 +184,7 @@ function Get-AbrADDomainController {
183184
$OutObj | Table @TableParams
184185
}
185186
}
187+
186188
Write-PscriboMessage "Collecting AD Domain Controller Time Source information."
187189
Section -Style Heading6 'Time Source Information' {
188190
Paragraph "The following section provides a summary of the Domain Controller Time Source configuration on $($Domain.ToString().ToUpper())."

Src/Private/SharedUtilsFunctions.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ function ConvertTo-TextYN {
2121
Position = 0,
2222
Mandatory)]
2323
[AllowEmptyString()]
24-
2524
[string]
2625
$TEXT
2726
)

Src/Public/Invoke-AsBuiltReport.Microsoft.AD.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ function Invoke-AsBuiltReport.Microsoft.AD {
8585
#---------------------------------------------------------------------------------------------#
8686
# Domain Section #
8787
#---------------------------------------------------------------------------------------------#
88+
8889
if ($InfoLevel.Domain -ge 1) {
8990
Section -Style Heading3 "Active Directory Domain Information" {
9091
if ($Options.ShowDefinitionInfo) {
@@ -308,6 +309,7 @@ function Invoke-AsBuiltReport.Microsoft.AD {
308309
#---------------------------------------------------------------------------------------------#
309310
# Certificate Authority Section #
310311
#---------------------------------------------------------------------------------------------#
312+
311313
if ($InfoLevel.CA -ge 1) {
312314
try {
313315
Section -Style Heading3 "Certificate Authority Summary" {

0 commit comments

Comments
 (0)