Skip to content

Commit

Permalink
Merge pull request #26 from AsBuiltReport/dev
Browse files Browse the repository at this point in the history
v0.6.3 public release
  • Loading branch information
rebelinux committed Jan 30, 2022
2 parents faa2503 + 08cd702 commit 25fd44b
Show file tree
Hide file tree
Showing 40 changed files with 719 additions and 820 deletions.
26 changes: 13 additions & 13 deletions AsBuiltReport.Microsoft.AD.Style.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,33 @@
DocumentOption -EnableSectionNumbering -PageSize A4 -DefaultFont 'Arial' -MarginLeftAndRight 71 -MarginTopAndBottom 71 -Orientation $Orientation

# Configure Heading and Font Styles
Style -Name 'Title' -Size 24 -Color '018aef' -Align Center
Style -Name 'Title 2' -Size 18 -Color '01a4ef' -Align Center
Style -Name 'Title 3' -Size 12 -Color '01a4ef' -Align Left
Style -Name 'Heading 1' -Size 16 -Color '018aef'
Style -Name 'Heading 2' -Size 14 -Color '018aef'
Style -Name 'Heading 3' -Size 12 -Color '018aef'
Style -Name 'Heading 4' -Size 11 -Color '018aef'
Style -Name 'Heading 5' -Size 11 -Color '018aef'
Style -Name 'Heading 6' -Size 11 -Color '018aef'
Style -Name 'Title' -Size 24 -Color '0076CE' -Align Center
Style -Name 'Title 2' -Size 18 -Color '00447C' -Align Center
Style -Name 'Title 3' -Size 12 -Color '00447C' -Align Left
Style -Name 'Heading 1' -Size 16 -Color '00447C'
Style -Name 'Heading 2' -Size 14 -Color '00447C'
Style -Name 'Heading 3' -Size 12 -Color '00447C'
Style -Name 'Heading 4' -Size 11 -Color '00447C'
Style -Name 'Heading 5' -Size 11 -Color '00447C'
Style -Name 'Heading 6' -Size 11 -Color '00447C'
Style -Name 'Normal' -Size 10 -Color '565656' -Default
Style -Name 'Caption' -Size 10 -Color '565656' -Italic -Align Center
Style -Name 'Header' -Size 10 -Color '565656' -Align Center
Style -Name 'Footer' -Size 10 -Color '565656' -Align Center
Style -Name 'TOC' -Size 16 -Color '018aef'
Style -Name 'TableDefaultHeading' -Size 10 -Color 'FAFAFA' -BackgroundColor '018aef'
Style -Name 'TOC' -Size 16 -Color '00447C'
Style -Name 'TableDefaultHeading' -Size 10 -Color 'FAFAFA' -BackgroundColor '0076CE'
Style -Name 'TableDefaultRow' -Size 10 -Color '565656'
Style -Name 'Critical' -Size 10 -BackgroundColor 'F25022'
Style -Name 'Warning' -Size 10 -BackgroundColor 'FFB900'
Style -Name 'Info' -Size 10 -BackgroundColor '018aef'
Style -Name 'Info' -Size 10 -BackgroundColor '00447C'
Style -Name 'OK' -Size 10 -BackgroundColor '7FBA00'

# Configure Table Styles
$TableDefaultProperties = @{
Id = 'TableDefault'
HeaderStyle = 'TableDefaultHeading'
RowStyle = 'TableDefaultRow'
BorderColor = '018aef'
BorderColor = '0076CE'
Align = 'Left'
CaptionStyle = 'Caption'
CaptionLocation = 'Below'
Expand Down
3 changes: 2 additions & 1 deletion AsBuiltReport.Microsoft.AD.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"ShowTableCaptions": true
},
"Options": {
"ShowDefinitionInfo": false
"ShowDefinitionInfo": false,
"PSDefaultAuthentication": "Negotiate"
},
"InfoLevel": {
"_comment_": "0 = Disabled, 1 = Enabled, 2 = Adv Summary, 3 = Detailed",
Expand Down
2 changes: 1 addition & 1 deletion AsBuiltReport.Microsoft.AD.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = 'AsBuiltReport.Microsoft.AD.psm1'

# Version number of this module.
ModuleVersion = '0.6.2'
ModuleVersion = '0.6.3'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# :arrows_counterclockwise: Microsoft AD As Built Report Changelog

## [0.6.3] - 2022-01-30

### Changed

- More Code refactoring to improve performance.
- Migrated DNS/DHCP Server section to use CIM sessions.
- Changed authentication parameter of CIM/PSRemote from kerberos to negotiate.
- Added variable to control CIM/PSRemote authentication method (PSDefaultAuthentication)
- Changed report main text color.

### Fixed

- Fix for more table caption error messages.
- Fix section heading hierarchy

## [0.6.2] - 2022-01-24

### Changed
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Below are the instructions on how to install, configure and generate a Microsoft
<!-- ********** Update supported AD versions ********** -->
The Microsoft AD As Built Report supports the following Active Directory versions;

- 2008, 2008 R2, 2012, 2016, 2019
- 2012, 2016, 2019

### PowerShell

Expand Down Expand Up @@ -156,6 +156,7 @@ The **Options** schema allows certain options within the report to be toggled on
| Sub-Schema | Setting | Default | Description |
|-----------------|--------------|---------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ShowDefinitionInfo | true/false | false | Toggle to enable/disable Microsoft AD term explanations
| PSDefaultAuthentication | Negotiate/Kerberos | Negotiate | Allow to set the value of the PSRemoting authentication method.


### InfoLevel
Expand Down
4 changes: 2 additions & 2 deletions Src/Private/Get-AbrADCAAIA.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ function Get-AbrADCAAIA {

process {
if ($CAs) {
Section -Style Heading4 "Authority Information Access (AIA) Summary" {
Section -Style Heading3 "Authority Information Access (AIA) Summary" {
Paragraph "The following section provides the Certification Authority Authority Information Access information."
BlankLine
foreach ($CA in $CAs) {
try {
Section -Style Heading5 "$($CA.Name)" {
Section -Style Heading4 "$($CA.Name)" {
$OutObj = @()
Write-PscriboMessage "Collecting AD CA Authority Information Access information on $($CA.Name)."
$AIA = Get-AuthorityInformationAccess -CertificationAuthority $CA
Expand Down
12 changes: 6 additions & 6 deletions Src/Private/Get-AbrADCACRLSetting.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ function Get-AbrADCACRLSetting {

process {
try {
Section -Style Heading4 "Certificate Revocation List (CRL) Configuration" {
Section -Style Heading3 "Certificate Revocation List (CRL) Configuration" {
Paragraph "The following section provides the Certification Authority CRL Distribution Point information."
BlankLine
Section -Style Heading5 "CRL Validity Period" {
Section -Style Heading4 "CRL Validity Period" {
$OutObj = @()
foreach ($CA in $CAs) {
try {
Expand Down Expand Up @@ -65,7 +65,7 @@ function Get-AbrADCACRLSetting {
$OutObj | Sort-Object -Property 'CA Name' | Table @TableParams
}
try {
Section -Style Heading5 "CRL Flags Settings" {
Section -Style Heading4 "CRL Flags Settings" {
$OutObj = @()
foreach ($CA in $CAs) {
try {
Expand Down Expand Up @@ -105,12 +105,12 @@ function Get-AbrADCACRLSetting {
Write-PscriboMessage -IsWarning $_.Exception.Message
}
try {
Section -Style Heading5 "CRL Distribution Point" {
Section -Style Heading4 "CRL Distribution Point" {
Paragraph "The following section provides the Certification Authority CRL Distribution Point information."
BlankLine
foreach ($CA in $CAs) {
try {
Section -Style Heading6 "$($CA.Name)" {
Section -Style Heading5 "$($CA.Name)" {
$OutObj = @()
Write-PscriboMessage "Collecting AD CA CRL Distribution Point information on $($CA.NAme)."
$CRL = Get-CRLDistributionPoint -CertificationAuthority $CA
Expand Down Expand Up @@ -161,7 +161,7 @@ function Get-AbrADCACRLSetting {
Write-PscriboMessage -IsWarning "$($_.Exception.Message) (CRL Distribution Point)"
}
try {
Section -Style Heading4 "AIA and CDP Health Status" {
Section -Style Heading3 "AIA and CDP Health Status" {
Paragraph "The following section is intended to perform Certification Authority health status checking by CA certificate chain status and validating all CRL Distribution Point (CDP) and Authority Information Access (AIA) URLs for each certificate in the chain."
BlankLine
$OutObj = @()
Expand Down
4 changes: 2 additions & 2 deletions Src/Private/Get-AbrADCACryptographyConfig.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Get-AbrADCACryptographyConfig {
.DESCRIPTION
.NOTES
Version: 0.6.2
Version: 0.6.3
Author: Jonathan Colon
Twitter: @jcolonfzenpr
Github: rebelinux
Expand All @@ -24,7 +24,7 @@ function Get-AbrADCACryptographyConfig {

process {
if ($CAs) {
Section -Style Heading4 "Cryptography Configuration" {
Section -Style Heading3 "Cryptography Configuration" {
Paragraph "The following section provides the Certification Authority Cryptography Configuration information."
BlankLine
$OutObj = @()
Expand Down
69 changes: 0 additions & 69 deletions Src/Private/Get-AbrADCAForest.ps1

This file was deleted.

4 changes: 2 additions & 2 deletions Src/Private/Get-AbrADCAKeyRecoveryAgent.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Get-AbrADCAKeyRecoveryAgent {
.DESCRIPTION
.NOTES
Version: 0.6.2
Version: 0.6.3
Author: Jonathan Colon
Twitter: @jcolonfzenpr
Github: rebelinux
Expand Down Expand Up @@ -42,7 +42,7 @@ function Get-AbrADCAKeyRecoveryAgent {
}
}
if ($OutObj) {
Section -Style Heading4 "Key Recovery Agent Certificate" {
Section -Style Heading3 "Key Recovery Agent Certificate" {
Paragraph "The following section provides the Key Recovery Agent certificate used to encrypt user's certificate private key and store it in CA database. In the case when user cannot access his or her certificate private key it is possible to recover it by Key Recovery Agent if Key Archival procedure was taken against particular certificate."
BlankLine
foreach ($Item in $OutObj) {
Expand Down
4 changes: 2 additions & 2 deletions Src/Private/Get-AbrADCARoot.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Get-AbrADCARoot {
.DESCRIPTION
.NOTES
Version: 0.6.2
Version: 0.6.3
Author: Jonathan Colon
Twitter: @jcolonfzenpr
Github: rebelinux
Expand All @@ -24,7 +24,7 @@ function Get-AbrADCARoot {

process {
try {
Section -Style Heading4 "Enterprise Root Certificate Authority" {
Section -Style Heading3 "Enterprise Root Certificate Authority" {
Paragraph "The following section provides the Enterprise Root CA information."
BlankLine
$OutObj = @()
Expand Down
4 changes: 2 additions & 2 deletions Src/Private/Get-AbrADCASecurity.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Get-AbrADCASecurity {
.DESCRIPTION
.NOTES
Version: 0.6.2
Version: 0.6.3
Author: Jonathan Colon
Twitter: @jcolonfzenpr
Github: rebelinux
Expand All @@ -24,7 +24,7 @@ function Get-AbrADCASecurity {

process {
if ($CAs) {
Section -Style Heading4 "Certificate Validity Period" {
Section -Style Heading3 "Certificate Validity Period" {
Paragraph "The following section provides the Certification Authority Certificate Validity Period information."
BlankLine
$OutObj = @()
Expand Down
4 changes: 2 additions & 2 deletions Src/Private/Get-AbrADCASubordinate.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Get-AbrADCASubordinate {
.DESCRIPTION
.NOTES
Version: 0.6.2
Version: 0.6.3
Author: Jonathan Colon
Twitter: @jcolonfzenpr
Github: rebelinux
Expand All @@ -28,7 +28,7 @@ function Get-AbrADCASubordinate {
$CAs = Get-CertificationAuthority -Enterprise | Where-Object {$_.IsRoot -like 'False'}
if ($CAs) {
Write-PscriboMessage "Discovered '$(($CAs | Measure-Object).Count)' Active Directory Certification Authority in domain $ForestInfo."
Section -Style Heading4 "Enterprise Subordinate Certificate Authority" {
Section -Style Heading3 "Enterprise Subordinate Certificate Authority" {
Paragraph "The following section provides the Enterprise Subordinate CA information."
BlankLine
$OutObj = @()
Expand Down
12 changes: 6 additions & 6 deletions Src/Private/Get-AbrADCATemplate.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Get-AbrADCATemplate {
.DESCRIPTION
.NOTES
Version: 0.6.2
Version: 0.6.3
Author: Jonathan Colon
Twitter: @jcolonfzenpr
Github: rebelinux
Expand All @@ -29,10 +29,10 @@ function Get-AbrADCATemplate {

process {
if ($Templates) {
Section -Style Heading4 "Certificate Template Summary" {
Section -Style Heading3 "Certificate Template Summary" {
Paragraph "The following section provides the certificate templates that are assigned to a specified Certification Authority (CA). CA server can issue certificates only based on assigned templates."
BlankLine
Section -Style Heading5 "$($CA.Name) Certificate Template" {
Section -Style Heading4 "$($CA.Name) Certificate Template" {
$OutObj = @()
foreach ($Template in $Templates) {
Write-PscriboMessage "Collecting $($Template.DisplayName) Issued Certificate Template information from $($CA.Name)."
Expand Down Expand Up @@ -62,10 +62,10 @@ function Get-AbrADCATemplate {
}
if ($InfoLevel.CA -ge 3) {
try {
Section -Style Heading5 "Issued Certificate Template ACLs" {
Section -Style Heading4 "Issued Certificate Template ACLs" {
Paragraph "The following section provides the certificate templates Access Control List that are assigned to a specified Certification Authority (CA)."
BlankLine
Section -Style Heading6 "$($CA.Name)" {
Section -Style Heading5 "$($CA.Name)" {
foreach ($Template in $Templates) {
try {
$Rights = Get-CertificateTemplateAcl -Template $Template.Name | Select-Object -ExpandProperty Access
Expand Down Expand Up @@ -113,7 +113,7 @@ function Get-AbrADCATemplate {
try {
$Templates = Get-CertificateTemplate
if ($Templates) {
Section -Style Heading5 "Certificate Template In Active Directory" {
Section -Style Heading4 "Certificate Template In Active Directory" {
Paragraph "The following section provides registered certificate templates from Active Directory."
BlankLine
$OutObj = @()
Expand Down
Loading

0 comments on commit 25fd44b

Please sign in to comment.