# Example 4 02

Example 4 02 on Evotec with practical examples, usage guidance, and reusable project workflows.

Project

PSWriteHTML

Generate HTML reports, dashboards, and emails from PowerShell without writing HTML, CSS, or JavaScript.

[View on GitHub](https://github.com/EvotecIT/PSWriteHTML) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteHTML/releases/tag/v1.41.0) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteHTML)

Stars**1025**

Forks**115**

Open issues**0**

PowerShell Gallery downloads**7576901**

Release**v1.45.0**

Language: PowerShell Updated: 2026-11-19

Curated Examples

An example script from the PSWriteHTML repository.

- Source repository: [https://github.com/EvotecIT/PSWriteHTML](https://github.com/EvotecIT/PSWriteHTML)
- Example group: `Example04-TableAndTabs`

```powershell
Import-Module .\PSWriteHTML.psd1 -Force

$ReportTitle = 'Test'
#$EnterpriseAdminTable = Get-ADuser -Filter * | Select-Object Name, Surname, Enabled, DisplayName
$EnterpriseAdminTable = Get-Process | Select-Object -First 5

New-HTML -TitleText $ReportTitle -Online -FilePath "$PSScriptRoot\Example4-02.html" {
    New-HTMLTab -TabName 'Dashboard1' {
        New-HTMLTab -Name 'Test1' {
            New-HTMLSection -HeaderText "Groups" {
                New-HTMLTable -DataTable $EnterpriseAdminTable {
                    New-TableHeader -Color Red -Title 'This shows standard table with header'
                }
            }
            New-HTMLSection -HeaderText 'Test 2' {
                New-HTMLTable -DataTable $EnterpriseAdminTable {
                    New-TableHeader -Color Red -Title 'This shows standard table with header'
                }
            }
        }
        New-HTMLTab -Name 'Test2' {
            New-HTMLSection -HeaderText "Groups" {
                New-HTMLTable -DataTable $EnterpriseAdminTable {
                    New-TableHeader -Color Red -Title 'This shows standard table with header'
                }
            }
            New-HTMLSection -HeaderText 'Test 2' {
                New-HTMLTable -DataTable $EnterpriseAdminTable {
                    New-TableHeader -Color Red -Title 'This shows standard table with header'
                }
            }
        }
    }
    New-HTMLTab -TabName 'Something1' {

    }
} -ShowHTML
```

<!-- PowerForge markdown artifact sha256:2FBA043C75CC52DE700E0353CFCD480D27C29C48C477A70AE15B13B308A4E5DB -->
