# Export Active Directory data to HTML

Export Active Directory data to HTML on Evotec with practical examples, usage guidance, and reusable project workflows.

Project

PSWinDocumentation.AD

PowerShell module delivering a lot of Active Directory Forest/Domain information

[View on GitHub](https://github.com/EvotecIT/PSWinDocumentation.AD) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWinDocumentation.AD/releases/tag/v0.1.20) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWinDocumentation.AD)

Stars**134**

Forks**24**

Open issues**0**

PowerShell Gallery downloads**124213**

Release**v0.1.20**

Language: PowerShell Updated: 2026-02-14

Curated Examples

Use PSWinDocumentation.AD data to build a simple HTML dashboard.

This pattern is useful when collected Active Directory data should become a browsable HTML artifact.

It is adapted from `Examples/Example-03-ExportActiveDirectoryToHTML.ps1`.

## Example

```powershell
Import-Module PSWinDocumentation.AD

$forest = Get-WinADForestInformation -Verbose -PasswordQuality -DontRemoveEmpty -Parallel -Splitter "`r`n"
$reportPath = Join-Path $PSScriptRoot 'Output\DashboardActiveDirectory.html'
New-Item -ItemType Directory -Path (Split-Path $reportPath) -Force | Out-Null

Dashboard -Name 'Active Directory Review' -FilePath $reportPath -Show {
    Tab -Name 'Forest' {
        foreach ($forestKey in $forest.Keys | Where-Object { $_ -ne 'FoundDomains' }) {
            Section -Name $forestKey -Collapsable {
                Table -DataTable $forest.$forestKey -HideFooter
            }
        }
    }
}
```

## What this demonstrates

- turning collected AD data into HTML
- keeping output under a script-local folder
- starting with forest-level data before adding domain tabs

## Source

- [Example-03-ExportActiveDirectoryToHTML.ps1](https://github.com/EvotecIT/PSWinDocumentation.AD/blob/master/Examples/Example-03-ExportActiveDirectoryToHTML.ps1)

<!-- PowerForge markdown artifact sha256:9555AE0AA00F6EFBB284EB1898C0C032C4F1CAF715EB7E0903ED7050B21E2220 -->
