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

Example01 Panels

Source-owned example maintained with PSWriteHTML.

Import-Module .\PSWriteHTML.psd1 -Force

New-HTML {

    New-HTMLSection {
        New-HTMLSectionStyle -BorderRadius 0px -HeaderBackGroundColor Grey -RemoveShadow
        New-HTMLPanel -BackgroundColor lightpink -AlignContentText center -BorderRadius 10px {
            New-HTMLText -TextBlock {
                New-HTMLText -Text "Test" -Alignment left -FontSize 25 -FontWeight bold
                New-HTMLText -Text 'Users Never Loged' -Alignment left -FontSize 15
                New-HTMLFontIcon -IconRegular address-book -IconSize 20
            }
        }

        New-HTMLPanel -Margin 10 {

            New-HTMLPanel -BackgroundColor lightpink -AlignContentText center -BorderRadius 0px {
                New-HTMLText -TextBlock {
                    New-HTMLText -Text $neverlogedenabled -Alignment left -FontSize 25 -FontWeight bold
                    New-HTMLText -Text 'Users Never Loged' -Alignment left -FontSize 15
                    New-HTMLFontIcon -IconRegular address-book -IconSize 20
                }
            } -Height 150px
        }
        New-HTMLPanel -Margin 10 {

            New-HTMLPanel -BackgroundColor khaki -AlignContentText right {
                New-HTMLText -Text 30 -Alignment left -FontSize 40 -FontWeight bold
                New-HTMLText -Text "Computers deleted" -Alignment left -FontSize 20
                New-HTMLFontIcon -IconSolid desktop -IconSize 20
            } -Height 250px
        }
        New-HTMLPanel -Margin 10 {

            New-HTMLPanel -BackgroundColor lightgreen -AlignContentText center -BorderRadius 10px {
                # New-HTMLText -TextBlock {
                #     New-HTMLText -Text 15 -Alignment justify -FontSize 25 -FontWeight bold
                #     New-HTMLText -Text 'Disabled Users' -Alignment justify -FontSize 15
                #     New-HTMLFontIcon -IconRegular address-book -IconSize 20
                # }
                New-HTMLText -Text "15" -FontSize 20px -FontWeight bold
            } -Height 250px
        }
    }

} -ShowHTML -FilePath $PSScriptRoot\Example01-Panels.html -Online