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

QR 02

An example script from the PSWriteHTML repository.

Import-Module .\PSWriteHTML.psd1 -Force

New-HTML -Online -FilePath $PSScriptRoot\Example-QR02.html {
    New-HTMLSection -Invisible {
        New-HTMLPanel {
            New-HTMLQRCode -Link 'https://evotec.xyz'
        }
        New-HTMLPanel {
            New-HTMLQRCode -Link 'https://evotec.xyz' -Height 250 -Width 250 -Logo 'https://evotec.xyz/wp-content/uploads/2015/05/Logo-evotec-012.png' -LogoWidth 100 -LogoInline
        }
    }
    # Unfortunetly this table when defined outside of New-HTML won't work, not yet - would need to think on new solution
    $Table = @(
        [PSCustomObject] @{
            ComputerName = 'EvoWin'
            QRCode       = New-HTMLQRCode -Link 'https://evotec.xyz/EvoWin' -Height 50 -Width 50 -Title 'Evotec' -TitleColor Red
        }
        [PSCustomObject] @{
            ComputerName = 'EvoMac'
            QRCode       = New-HTMLQRCode -Link 'https://evotec.xyz/EvoMac' -Height 50 -Width 50 -Logo 'https://evotec.xyz/wp-content/uploads/2015/05/Logo-evotec-012.png'
        }
    )
    New-HTMLTable -DataTable $Table -Filtering -InvokeHTMLTags
} -ShowHTML