Project

PSWriteHTML

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

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

New-HTMLQRCode

Module
PSWriteHTML

Creates an HTML QR code with specified parameters.

Syntax

New-HTMLQRCode
[[-Height] <Object>]
[[-Link] <String>]
[[-Logo] <String>]
[[-LogoHeight] <Object>]
[-LogoInline]
[[-LogoWidth] <Object>]
[[-Title] <String>]
[[-TitleColor] <String>]
[[-Width] <Object>]
[<CommonParameters>]
#
Parameter set: All Parameter Sets

Description

This function generates an HTML QR code based on the provided parameters. It allows customization of the QR code appearance and content.

Examples

Example 1

New-HTMLQRCode -Link "https://example.com" -Width 200 -Height 200 -Title "Example QR Code" -TitleColor "black" -Logo "C:\logo.png" -LogoWidth 50 -LogoHeight 50 -LogoInline
Creates a QR code with a specified link, dimensions, title, color, and logo embedded inline.

Example 2

New-HTMLQRCode -Link "tel:1234567890" -Width 150 -Height 150 -Title "Contact Number" -TitleColor "blue" -Logo "C:\company_logo.png" -LogoWidth 30 -LogoHeight 30
Generates a QR code for a phone number with custom dimensions, title, color, and logo.

Parameters

-Height Object optionalposition: 2
The height of the QR code.
The link or content to be encoded in the QR code.
The path to the logo image to be embedded in the QR code.
-LogoHeight Object optionalposition: 7
The height of the logo image.
-LogoInline SwitchParameter optional
Indicates whether the logo should be embedded inline in the QR code.
-LogoWidth Object optionalposition: 6
The width of the logo image.
-Title String optionalposition: 3
The title or alt text for the QR code.
-TitleColor String optionalposition: 4
The color of the title text.
-Width Object optionalposition: 1
The width of the QR code.

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.