Skip to content

Commit

Permalink
Merge pull request #80 from AsBuiltReport/dev
Browse files Browse the repository at this point in the history
v0.7.9 public release
  • Loading branch information
rebelinux committed Oct 9, 2022
2 parents 0e0d7f5 + 35dc961 commit f5c89a3
Show file tree
Hide file tree
Showing 22 changed files with 2,747 additions and 1,892 deletions.
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.7.8'
ModuleVersion = '0.7.9'

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

## [0.7.9] - 2022-10-09

### Added

- Added charts to the Domain object count sub-sections

### Changed

- Split the Domain object count section.
- Computers Object count
- User object count
- Domain Controller count

### Fixed

- close [#69](https://github.com/AsBuiltReport/AsBuiltReport.Microsoft.AD/issues/69)
- close [#74](https://github.com/AsBuiltReport/AsBuiltReport.Microsoft.AD/issues/74)
- close [#75](https://github.com/AsBuiltReport/AsBuiltReport.Microsoft.AD/issues/75)
- close [#76](https://github.com/AsBuiltReport/AsBuiltReport.Microsoft.AD/issues/76)
- close [#77](https://github.com/AsBuiltReport/AsBuiltReport.Microsoft.AD/issues/77)
- close [#78](https://github.com/AsBuiltReport/AsBuiltReport.Microsoft.AD/issues/78)

## [0.7.8] - 2022-10-04

### Added
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ PowerShell 5.1 or PowerShell 7, and the following PowerShell modules are require
- [AsBuiltReport.Microsoft.AD Module](https://www.powershellgallery.com/packages/AsBuiltReport.Microsoft.AD/)
- [PScriboCharts Module](https://github.com/iainbrighton/PScriboCharts)
- [ActiveDirectory Module](https://docs.microsoft.com/en-us/powershell/module/activedirectory/?view=windowsserver2019-ps)
- [ADCSAdministration Module](https://learn.microsoft.com/en-us/powershell/module/adcsadministration/?view=windowsserver2019-ps)
- [PSPKI Module](https://www.powershellgallery.com/packages/PSPKI/3.7.2)
- [GroupPolicy Module](https://docs.microsoft.com/en-us/powershell/module/grouppolicy/?view=windowsserver2019-ps)
- [DhcpServer Module](https://docs.microsoft.com/en-us/powershell/module/dhcpserver/?view=windowsserver2019-ps)
Expand All @@ -95,6 +96,7 @@ Install-Module -Name PSPKI
Install-Module -Name PScriboCharts
Install-Module -Name AsBuiltReport.Microsoft.AD
Install-WindowsFeature -Name RSAT-AD-PowerShell
Install-WindowsFeature -Name RSAT-ADCS,RSAT-ADCS-mgmt
Install-WindowsFeature -Name RSAT-DNS-Server
Install-WindowsFeature -Name RSAT-DHCP
Install-WindowsFeature -Name GPMC
Expand All @@ -107,6 +109,7 @@ Install-Module -Name PSPKI
Install-Module -Name PScriboCharts
Install-Module -Name AsBuiltReport.Microsoft.AD
Add-WindowsCapability -online -Name 'Rsat.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0'
Add-WindowsCapability -Online -Name 'Rsat.CertificateServices.Tools~~~~0.0.1.0'
Add-WindowsCapability -online -Name 'Rsat.GroupPolicy.Management.Tools~~~~0.0.1.0'
Add-WindowsCapability –online –Name 'Rsat.Dns.Tools~~~~0.0.1.0'
Add-WindowsCapability -Online -Name 'Rsat.DHCP.Tools~~~~0.0.1.0'
Expand Down
3,017 changes: 1,780 additions & 1,237 deletions Samples/Sample Microsoft AD As Built Report.html

Large diffs are not rendered by default.

Binary file modified Samples/Sample Microsoft AD As Built Report.pdf
Binary file not shown.
72 changes: 36 additions & 36 deletions Src/Private/Get-AbrADCAAIA.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Get-AbrADCAAIA {
.DESCRIPTION
.NOTES
Version: 0.7.6
Version: 0.7.9
Author: Jonathan Colon
Twitter: @jcolonfzenpr
Github: rebelinux
Expand All @@ -16,54 +16,54 @@ function Get-AbrADCAAIA {
#>
[CmdletBinding()]
param (
[Parameter (
Position = 0,
Mandatory)]
$CA
)

begin {
Write-PscriboMessage "Collecting AD Certification Authority Authority Information Access information."
}

process {
if ($CAs) {
Section -Style Heading3 "Authority Information Access (AIA)" {
if ($CA) {
Section -Style Heading4 "Authority Information Access (AIA)" {
Paragraph "The following section provides the Certification Authority Authority Information Access information."
BlankLine
foreach ($CA in $CAs) {
try {
Section -Style Heading4 "$($CA.Name)" {
$OutObj = @()
Write-PscriboMessage "Collecting AD CA Authority Information Access information on $($CA.Name)."
$AIA = Get-AuthorityInformationAccess -CertificationAuthority $CA
foreach ($URI in $AIA.URI) {
try {
$inObj = [ordered] @{
'Reg URI' = $URI.RegURI
'Config URI' = $URI.ConfigURI
'Flags' = ConvertTo-EmptyToFiller ($URI.Flags -join ", ")
'Server Publish' = ConvertTo-TextYN $URI.ServerPublish
'Include To Extension' = ConvertTo-TextYN $URI.IncludeToExtension
'OCSP' = ConvertTo-TextYN $URI.OCSP
}
$OutObj = [pscustomobject]$inobj
try {
$OutObj = @()
Write-PscriboMessage "Collecting AD CA Authority Information Access information on $($CA.Name)."
$AIA = Get-AuthorityInformationAccess -CertificationAuthority $CA
foreach ($URI in $AIA.URI) {
try {
$inObj = [ordered] @{
'Reg URI' = $URI.RegURI
'Config URI' = $URI.ConfigURI
'Flags' = ConvertTo-EmptyToFiller ($URI.Flags -join ", ")
'Server Publish' = ConvertTo-TextYN $URI.ServerPublish
'Include To Extension' = ConvertTo-TextYN $URI.IncludeToExtension
'OCSP' = ConvertTo-TextYN $URI.OCSP
}
$OutObj = [pscustomobject]$inobj

$TableParams = @{
Name = "Authority Information Access - $($CA.Name)"
List = $true
ColumnWidths = 40, 60
}
if ($Report.ShowTableCaptions) {
$TableParams['Caption'] = "- $($TableParams.Name)"
}
$OutObj | Table @TableParams
}
catch {
Write-PscriboMessage -IsWarning "$($_.Exception.Message) (Authority Information Access Item)"
}
$TableParams = @{
Name = "Authority Information Access - $($CA.Name)"
List = $true
ColumnWidths = 40, 60
}
if ($Report.ShowTableCaptions) {
$TableParams['Caption'] = "- $($TableParams.Name)"
}
$OutObj | Table @TableParams
}
catch {
Write-PscriboMessage -IsWarning "$($_.Exception.Message) (Authority Information Access Item)"
}
}
catch {
Write-PscriboMessage -IsWarning "$($_.Exception.Message) (Authority Information Access Table)"
}
}
catch {
Write-PscriboMessage -IsWarning "$($_.Exception.Message) (Authority Information Access Table)"
}
}
}
Expand Down
Loading

0 comments on commit f5c89a3

Please sign in to comment.