Powershell - AD As Built Report module overview

To support me, you can subscribe to the channel, share and like the videos, disable your ad blocker or make a donation. Thank you!

Hello,

Microsoft AD As Built Report is a PowerShell module that works in conjunction with AsBuiltReport.Core to generate a report on your Active Directory.

AsBuiltReport is an open community project that uses PowerShell to produce documentation in multiple document formats for multiple vendors and technologies.

The report contains the following information:

1          IT.TLD Active Directory Report
1.1           Forest Information.
1.1.1          Optional Features
1.1.2          Domain Sites
1.1.2.1         Site Links
1.2         Active Directory Domain Information
1.2.1          IT.TLD Root Domain Configuration
1.2.1.1         Flexible Single Master Operations (FSMO)
1.2.1.2         User Accounts in Active Directory
1.2.1.3         Status of Users Accounts
1.2.1.4         Privileged Group Count
1.2.1.5         Computer Accounts in Active Directory
1.2.1.6         Status of Computer Accounts
1.2.1.7         Operating Systems Count
1.2.1.8         Default Domain Password Policy
1.2.1.9         Domain Controller Summary
1.2.1.9.1        NTDS Information
1.2.1.9.2        Time Source Information
1.2.1.9.3        Infrastructure Services Status
1.2.1.9.4        Group Policy Objects Summary
1.2.1.9.4.1       Central Store Repository
1.2.1.9.5        Organizational Units
1.3           Domain Name System Summary
1.3.1          IT.TLD Root Domain DNS Configuration
1.3.1.1         Infrastructure Summary
1.3.1.1.1        Forwarder Options
1.3.1.2         AD1 DNS Zones
1.3.1.2.1        Reverse Lookup Zone
1.4         Dynamic Host Configuration Protocol Summary
1.4.1          IT.TLD Root Domain DHCP Configuration
1.4.1.1         DHCP Servers In Active Directory
1.4.1.1.1        Service Database
1.4.1.1.2        Dynamic DNS credentials
1.4.1.2         IPv4 Scope Configuration
1.4.1.2.1        IPv4 Service Statistics
1.4.1.2.2        AD1 IPv4 Scopes
1.4.1.2.2.1       IPv4 Scope Statistics
1.4.1.2.2.2       IPv4 Network Interface Binding
1.4.1.3         IPv6 Scope Configuration
1.4.1.3.1        IPv6 Service Statistics

# Documentation
https://github.com/AsBuiltReport/AsBuiltReport.Microsoft.AD

# Sample report
https://htmlpreview.github.io/?https://raw.githubusercontent.com/AsBuiltReport/AsBuiltReport.Microsoft.AD/master/Samples/Sample%20Microsoft%20AD%20As%20Built%20Report.html

# Active Directory versions supported
2012, 2016, 2019 & 2022

# Prerequisites

  • Windows PowerShell 5.1 or PowerShell 7
  • AsBuiltReport.Microsoft.AD module
  • PScriboCharts Module
  • ActiveDirectory module
  • ADCSAdministration module
  • PSPKI Module
  • GroupPolicy module
  • DhcpServer module
  • DnsServer Module
#Installation on a DC
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
# Installation on a Windows client (10 or 11)
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'
# The configuration uses a JSON file
# Create the default JSON file
Report = 'C:\temp\report' $DCCible = 'AD1
$DCCible = 'AD1.it.tld'
if (!( test-path $Rapport )) { new-item 'C:\temp\rapport' -ItemType Directory }
New-AsBuiltReportConfig -Report Microsoft.AD -FolderPath 'C:\temp\rapport'
# Generate a report for a DC with an export in text, HTML and Word with timestamp in the file name
New-AsBuiltReport -Report Microsoft.AD -Target $DCCible -Format Text,Html,Word -OutputFolderPath $Rapport -Timestamp
# Generate a report for a DC with HTML and Word export using a configuration file
New-AsBuiltReport -Report Microsoft.AD -Target $DCCible -Format Text,Html,Word -OutputFolderPath $Rapport -ReportConfigFilePath 'C:\temp\rapport\AsBuiltReport.Microsoft.AD.json' # Generate a report for a DC with HTML and Word export using a timestamp
# Generate a report for a DC with HTML and Word export by highlighting the problems in the report and specifying different identifiers
$Creds = Get-Credential
New-AsBuiltReport -Report Microsoft.AD -Target $DCCible -Format Text,Html,Word -OutputFolderPath $Rapport -Credential $Creds -EnableHealthCheck

Related links