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-HTMLLogo

Module PSWriteHTML

Creates a new HTML logo with specified parameters.

Syntax

New-HTMLLogo [-HideLogos] [[-LeftLogoName] <String>] [[-LeftLogoString] <String>] [[-LogoPath] <String>] [[-RightLogoName] <String>] [[-RightLogoString] <String>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Description

This function creates a new HTML logo using the provided parameters. It allows customization of the left and right logo names, strings, and the option to hide logos.

Examples

Authored help example

EXAMPLE 1

New-HTMLLogo -LogoPath "C:\Logos\logo.png" -LeftLogoName "CompanyA" -RightLogoName "CompanyB" -LeftLogoString "Company A Logo" -RightLogoString "Company B Logo"

Creates a new HTML logo with custom left and right logo names and strings.

EXAMPLE 2

New-HTMLLogo -LogoPath "C:\Logos\logo.png" -HideLogos

Creates a new HTML logo with logos hidden.

Parameters

-HideLogos SwitchParameter optional
Switch parameter to hide logos.
-LeftLogoName String optionalposition: 1
The name of the left logo. Default is "Sample".
-LeftLogoString String optionalposition: 3
The string for the left logo.
-LogoPath String optionalposition: 0
The path to the logo.
-RightLogoName String optionalposition: 2
The name of the right logo. Default is "Alternate".
-RightLogoString String optionalposition: 4
The string for the right logo.

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.