Project

PSWriteHTML

PSWriteHTML is an open-source PowerShell project with packages, release history, and working documentation.

Stars1015
Forks112
Open issues54
PowerShell Gallery downloads7576901
Releasev1.41.0
Language: PowerShell Updated: 2026-08-10T20:00:10.0000000+00:00

Curated Examples

Example40 Body01

Source-owned example maintained with PSWriteHTML.

Import-Module $PSScriptRoot\..\..\PSWriteHTML.psd1 -Force

$Test1 = Get-Process | Select-Object -First 2 -Property Id, HandleCount, Name, FileVersion, Path

New-HTML -TitleText 'My title' -Online -FilePath $PSScriptRoot\Example40-Body.html -Show {
    New-HTMLMain {
        New-HTMLTabStyle -SlimTabs `
            -BorderBottomStyleActive solid -BorderBottomColorActive LightSkyBlue -BackgroundColorActive none `
            -TextColorActive Black -Align left -BorderRadius 0px -RemoveShadow -TextColor Grey -TextTransform capitalize #-FontSize 10pt

        New-HTMLSectionStyle -BorderRadius 0px -HeaderBackGroundColor Grey
        New-HTMLTab -Name 'First Level Tab - Test 1' -IconBrands acquisitions-incorporated {
            New-HTMLTab -Name '2nd Level Tab - Test 4/1' -IconBrands app-store {
                New-HTMLSection -HeaderText 'Default Section Style' {
                    New-HTMLTableStyle -Type Header -TextAlign right -TextColor Blue
                    New-HTMLTableStyle -Type Row -TextAlign left -TextColor Grey
                    New-HTMLTable -DataTable $Test1 {
                        New-HTMLTableHeader -Names 'ID', 'HandleCount'
                    } -Filtering #-HideFooter -FilteringLocation Both
                } -CanCollapse
            }
        }
        New-HTMLTab -Name 'Next' {

        }
    } -BackgroundColor Yellow -Color Red -FontSize 12px #-FontFamily 'Arial'
}