Project

PSWriteHTML

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

Stars1017
Forks115
Open issues54
PowerShell Gallery downloads7576901
Releasev1.41.0
Language: PowerShell Updated: 2026-10-03

Curated Examples

7 Alphabet Search 2

An example script from the PSWriteHTML repository.

Import-Module .\PSWriteHTML.psd1 -Force

#$Process = Get-Process | Select-Object -First 30
$ProcessSmaller = Get-ADUser -Filter * | Select-Object -First 3 # -Property Name, Id, PriorityClass, Responding

New-HTML {
    New-HTMLSection -HeaderText 'Standard Table with Alphabet Search' {
        New-HTMLTable -DataTable $ProcessSmaller -AlphabetSearch {

        }
        New-HTMLTable -DataTable $ProcessSmaller -AlphabetSearch {
            New-TableAlphabetSearch -ColumnName Name -AddNumbers
        }
    }
    New-HTMLSection -HeaderText 'Standard Table with Alphabet Search' {
        New-HTMLTable -DataTable $ProcessSmaller -AlphabetSearch {
            New-TableAlphabetSearch -ColumnName SID -CaseSensitive
        }
    }
    New-HTMLSection -HeaderText 'Standard Table with Alphabet Search' {
        New-HTMLTable -DataTable $ProcessSmaller -AlphabetSearch {

        }
    }
    New-HTMLSection -HeaderText 'Standard Table without ALphabet' {
        New-HTMLTable -DataTable $ProcessSmaller {

        }
    }
} -ShowHTML -FilePath $PSScriptRoot\Example7_AlphabetSearch2.html -Format -Online