Project

PSWriteHTML

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

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

Curated Examples

Table Conditions 02

An example script from the PSWriteHTML repository.

Import-Module .\PSWriteHTML.psd1 -Force

$Process = @(
    [PSCustomObject] @{
        Name = 'Test'
        Value = 'Something'
    }
    [PSCustomObject] @{
        Name = 'Test'
        Value = 'Something'
    }
    [PSCustomObject] @{
        Name = 'Test'
        Value = 'Something'
    }
    [PSCustomObject] @{
        Name = 'Test'
        Value = 'Something'
    }
)

New-HTML -TitleText 'My title' -Online -FilePath $PSScriptRoot\Example-TableConditions02.html {
    New-HTMLTable -DataTable $Process -PagingOptions @(50, 100, 150, 200) {
        New-HTMLTableCondition -Name 'Name' -Type string -Operator gt -Value 'Test' -BackgroundColor Yellow
    }
} -ShowHTML -Format