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

Status Page 01

An example script from the PSWriteHTML repository.

Import-Module .\PSWriteHTML.psd1 -Force


New-HTML -TitleText 'Services Status' -Online:$false -FilePath $PSScriptRoot\StatusPage01.html {
    New-HTMLSection -Invisible {
        New-HTMLPanel -Invisible {
            New-HTMLToast -TextHeader 'Information' -Text 'Everything is running smoothly!' -BarColorLeft Blue -IconSolid info-circle -IconColor Blue
            New-HTMLToast -TextHeader 'Information' -Text 'Everything is running smoothly!' -BarColorLeft Orange -IconSolid tablet  -IconColor Orange
            New-HTMLToast -TextHeader 'Information' -Text 'Everything is running smoothly!' -BarColorLeft Blue -IconSolid info-circle -IconColor Blue
        }
        New-HTMLPanel -Invisible {
            New-HTMLTimeline {
                New-HTMLTimelineItem -HeadingText 'Azure AD is down' -Text "We have huge problems" -Date (Get-Date).AddDays(-1)
                New-HTMLTimelineItem -HeadingText 'Azure AD ...' -Text "We have huge problems" -Date (Get-Date).AddDays(-2)
                New-HTMLTimelineItem -HeadingText 'AD just died' -Text "We have huge problems" -Date (Get-Date).AddDays(-3) -Color Red
            }
        }
    }
} -ShowHTML