PowerShell - Introduction to the Windows As Built Report module
2 min read · Updated 3 February 2023
Hello,
Windows As Built Report is a PowerShell module that works in conjunction with AsBuiltReport.Core on the same principle as Microsoft AD As Built.
AsBuiltReport is an open community project that uses PowerShell to produce documentation in multiple document formats for multiple vendors and technologies.
The module generates a report on a Windows server:
- System information (Drivers, network, updates, roles and functionalities, applications…)
- DNS
- DHCP
- IIS
# Documentation
https://github.com/AsBuiltReport/AsBuiltReport.Microsoft.AD
# Prerequisites
- Windows PowerShell 5.1 or PowerShell 7
- Module AsBuiltReport.Microsoft.AD
- PScriboCharts module
- ActiveDirectory module - ADCSAdministration module
- PSPKI Module - GroupPolicy Module - DhcpServer Module - DnsServer Module
#Installing on a serverInstall-Module AsBuiltReport.Microsoft.Windows
# DNS/DHCP Server powershell modulesInstall-WindowsFeature -Name RSAT-DNS-ServerInstall-WindowsFeature -Name RSAT-DHCP
# Hyper-V Server powershell modulesInstall-WindowsFeature -Name Hyper-V-PowerShell
# IIS Server powershell modulesInstall-WindowsFeature -Name web-mgmt-consoleInstall-WindowsFeature -Name Web-Scripting-Tools
# The configuration uses a JSON file# Creation of the default JSON file$TargetServer = 'srv1.domain.tld'$Report = 'C:\temp\report'if (!( test-path $Report )) { new-item 'C:\temp\report' -ItemType Directory }New-AsBuiltReportConfig -Report Microsoft.Windows -FolderPath 'C:\temp\report'
# Generate a report for a DC with an export in text, HTML and Word with timestamp in the file nameNew-AsBuiltReport -Report Microsoft.Windows -Target $TargetServer -Format Text,Html,Word -OutputFolderPath $Report -Timestamp
# Generate a report for a DC with HTML and Word export using a configuration fileNew-AsBuiltReport -Report Microsoft.Windows -Target $TargetServer -Format Text,Html,Word -OutputFolderPath $Report -ReportConfigFilePath 'C:\Users\Jon\AsBuiltReport\AsBuiltReport.Microsoft.Windows.json' # Generate a report for a DC with HTML and Word export using the configuration file
# Generate a report for a DC with HTML and Word export, highlighting the problems in the report and using different identifiers$Creds = Get-CredentialNew-AsBuiltReport -Report Microsoft.Windows -Target $TargetServer -Format Text,Html,Word -OutputFolderPath $Report -Credential $Creds -EnableHealthCheckRelated links
- PowerShell
PowerShell - Hyper-V - Managing virtual machine configuration versions
How to update the configuration version of a virtual machine so that it can use the new features available on your new Hyper-V
2 min read
- PowerShell
Several ways to rename a computer in Windows
A video showing how to rename a computer in Windows
1 min read
- PowerShell
Viewing other types of file containing simple text in Windows
It is possible to view other types of file containing simple text, such as .ps1, .psm1, .psd1, .twig, .gcode... in Windows File Explorer
1 min read
- Configuration
How to add and change languages in Windows 10 and Windows 11
Add a language to Windows 10 and Windows 11, then choose the system display language, with a demonstration video.
1 min read
- Configuration
Services and the services console on Windows
A video presenting services and the Windows services console (start-up mode, service properties and user services)
1 min read
- Maintenance
The difference between updates and upgrades
A video to explain the terms upgrade, update, quality update and functionality update
1 min read