Project

PSWriteHTML

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

Stars 1,019
Forks 115
Open issues 54
PowerShell Gallery downloads 7,576,901
Release v1.41.0
Language: PowerShell Updated: 2026-10-03
Command

New-HTMLTab

Module PSWriteHTML

Creates a new HTML tab with customizable content and icons.

Syntax

New-HTMLTab [-AnchorName <String>] [[-Heading] <String>] [[-HtmlData] <ScriptBlock>] [-IconBrands <String>] [-IconColor <String>] [-IconSize <Object>] [-Name <String>] [-TextColor <String>] [-TextSize <Object>] [-TextTransform <uppercase|lowercase|capitalize>] [<CommonParameters>]
#
Parameter set: FontAwesomeBrands
New-HTMLTab [-AnchorName <String>] [[-Heading] <String>] [[-HtmlData] <ScriptBlock>] [-IconColor <String>] [-IconSize <Object>] [-IconSolid <String>] [-Name <String>] [-TextColor <String>] [-TextSize <Object>] [-TextTransform <uppercase|lowercase|capitalize>] [<CommonParameters>]
#
Parameter set: FontAwesomeSolid
New-HTMLTab [-AnchorName <String>] [[-Heading] <String>] [[-HtmlData] <ScriptBlock>] [-IconColor <String>] [-IconRegular <String>] [-IconSize <Object>] [-Name <String>] [-TextColor <String>] [-TextSize <Object>] [-TextTransform <uppercase|lowercase|capitalize>] [<CommonParameters>]
#
Parameter set: FontAwesomeRegular

Description

The New-HTMLTab function creates a new HTML tab with the specified content, heading, and icon. It supports different parameter sets for FontAwesomeBrands, FontAwesomeRegular, and FontAwesomeSolid icons.

Examples

Authored help example

EXAMPLE 1

New-HTMLTab -HtmlData { Get-Process } -Heading "Processes" -Name "ProcessTab" -IconBrands "windows"

Creates a new tab displaying the list of processes with a Windows icon.

EXAMPLE 2

New-HTMLTab -HtmlData { Get-Service } -Heading "Services" -Name "ServiceTab" -IconRegular building

Creates a new tab displaying the list of services with a hard drive icon.

EXAMPLE 3

New-HTMLTab -HtmlData { Get-EventLog -LogName System } -Heading "System Events" -Name "EventTab" -IconSolid "exclamation-triangle"

Creates a new tab displaying the system events log with an exclamation triangle icon.

Parameters

-AnchorName String optional
New-HTMLTab - Add text-transform
-Heading String optionalposition: 1aliases: TabHeading
The heading or title of the tab.
-HtmlData ScriptBlock optionalposition: 0
The HTML content to be displayed within the tab. This should be provided as a ScriptBlock.
-IconBrands String optionalsets: FontAwesomeBrands
The icon to be displayed for FontAwesomeBrands. Use tab completion to select from available options.
-IconColor String optional
-IconSize Object optional
-Name String optionalaliases: TabName
The name of the tab.
-TextColor String optional
-TextSize Object optional
-TextTransform String optional
Possible values: uppercase, lowercase, capitalize
-IconSolid String optionalsets: FontAwesomeSolid
The icon to be displayed for FontAwesomeSolid. Use tab completion to select from available options.
-IconRegular String optionalsets: FontAwesomeRegular
The icon to be displayed for FontAwesomeRegular. Use tab completion to select from available options.

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.