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

Module PSWriteHTML

Creates nodes on a diagram

Syntax

New-DiagramNode [-ArrowsFromEnabled] [-ArrowsMiddleEnabled] [-ArrowsToEnabled] [-BorderWidth <Nullable`1>] [-BorderWidthSelected <Nullable`1>] [-Chosen <Nullable`1>] [-ColorBackground <String>] [-ColorBorder <String>] [-ColorHighlightBackground <String>] [-ColorHighlightBorder <String>] [-ColorHoverBackground <String>] [-ColorHoverBorder <String>] [-FixedX <Nullable`1>] [-FixedY <Nullable`1>] [-FontAlign <center|left>] [-FontBackground <String>] [-FontColor <String>] [-FontMulti <false|true|markdown|html>] [-FontName <String>] [-FontSize <Nullable`1>] [-FontStrokeColor <String>] [-FontStrokeWidth <Nullable`1>] [-FontVAdjust <Nullable`1>] [-HeightConstraintMinimum <Nullable`1>] [-HeightConstraintVAlign <top|middle|bottom>] [-HtmlTextBox <ScriptBlock>] [-Id <String>] [-Label <String>] [-Level <Nullable`1>] [-LinkColor <String>] [-Shape <String>] [-Size <Nullable`1>] [-Title <String>] [-To <String[]>] [-WidthConstraintMaximum <Nullable`1>] [-WidthConstraintMinimum <Nullable`1>] [-X <Nullable`1>] [-Y <Nullable`1>] [<CommonParameters>]
#
Parameter set: Shape
New-DiagramNode [-ArrowsFromEnabled] [-ArrowsMiddleEnabled] [-ArrowsToEnabled] [-BorderWidth <Nullable`1>] [-BorderWidthSelected <Nullable`1>] [-BrokenImages <String>] [-Chosen <Nullable`1>] [-ColorBackground <String>] [-ColorBorder <String>] [-ColorHighlightBackground <String>] [-ColorHighlightBorder <String>] [-ColorHoverBackground <String>] [-ColorHoverBorder <String>] [-FixedX <Nullable`1>] [-FixedY <Nullable`1>] [-FontAlign <center|left>] [-FontBackground <String>] [-FontColor <String>] [-FontMulti <false|true|markdown|html>] [-FontName <String>] [-FontSize <Nullable`1>] [-FontStrokeColor <String>] [-FontStrokeWidth <Nullable`1>] [-FontVAdjust <Nullable`1>] [-HeightConstraintMinimum <Nullable`1>] [-HeightConstraintVAlign <top|middle|bottom>] [-HtmlTextBox <ScriptBlock>] [-Id <String>] [-Image <Uri>] [-ImageType <squareImage|circularImage>] [-Label <String>] [-Level <Nullable`1>] [-LinkColor <String>] [-Size <Nullable`1>] [-Title <String>] [-To <String[]>] [-WidthConstraintMaximum <Nullable`1>] [-WidthConstraintMinimum <Nullable`1>] [-X <Nullable`1>] [-Y <Nullable`1>] [<CommonParameters>]
#
Parameter set: Image
New-DiagramNode [-ArrowsFromEnabled] [-ArrowsMiddleEnabled] [-ArrowsToEnabled] [-BorderWidth <Nullable`1>] [-BorderWidthSelected <Nullable`1>] [-Chosen <Nullable`1>] [-FixedX <Nullable`1>] [-FixedY <Nullable`1>] [-FontAlign <center|left>] [-FontBackground <String>] [-FontColor <String>] [-FontMulti <false|true|markdown|html>] [-FontName <String>] [-FontSize <Nullable`1>] [-FontStrokeColor <String>] [-FontStrokeWidth <Nullable`1>] [-FontVAdjust <Nullable`1>] [-HeightConstraintMinimum <Nullable`1>] [-HeightConstraintVAlign <top|middle|bottom>] [-HtmlTextBox <ScriptBlock>] [-IconAsImage] [-IconColor <String>] [-IconSolid <String>] [-Id <String>] [-Label <String>] [-Level <Nullable`1>] [-LinkColor <String>] [-Size <Nullable`1>] [-Title <String>] [-To <String[]>] [-WidthConstraintMaximum <Nullable`1>] [-WidthConstraintMinimum <Nullable`1>] [-X <Nullable`1>] [-Y <Nullable`1>] [<CommonParameters>]
#
Parameter set: FontAwesomeSolid
New-DiagramNode [-ArrowsFromEnabled] [-ArrowsMiddleEnabled] [-ArrowsToEnabled] [-BorderWidth <Nullable`1>] [-BorderWidthSelected <Nullable`1>] [-Chosen <Nullable`1>] [-FixedX <Nullable`1>] [-FixedY <Nullable`1>] [-FontAlign <center|left>] [-FontBackground <String>] [-FontColor <String>] [-FontMulti <false|true|markdown|html>] [-FontName <String>] [-FontSize <Nullable`1>] [-FontStrokeColor <String>] [-FontStrokeWidth <Nullable`1>] [-FontVAdjust <Nullable`1>] [-HeightConstraintMinimum <Nullable`1>] [-HeightConstraintVAlign <top|middle|bottom>] [-HtmlTextBox <ScriptBlock>] [-IconAsImage] [-IconColor <String>] [-IconRegular <String>] [-Id <String>] [-Label <String>] [-Level <Nullable`1>] [-LinkColor <String>] [-Size <Nullable`1>] [-Title <String>] [-To <String[]>] [-WidthConstraintMaximum <Nullable`1>] [-WidthConstraintMinimum <Nullable`1>] [-X <Nullable`1>] [-Y <Nullable`1>] [<CommonParameters>]
#
Parameter set: FontAwesomeRegular
New-DiagramNode [-ArrowsFromEnabled] [-ArrowsMiddleEnabled] [-ArrowsToEnabled] [-BorderWidth <Nullable`1>] [-BorderWidthSelected <Nullable`1>] [-Chosen <Nullable`1>] [-FixedX <Nullable`1>] [-FixedY <Nullable`1>] [-FontAlign <center|left>] [-FontBackground <String>] [-FontColor <String>] [-FontMulti <false|true|markdown|html>] [-FontName <String>] [-FontSize <Nullable`1>] [-FontStrokeColor <String>] [-FontStrokeWidth <Nullable`1>] [-FontVAdjust <Nullable`1>] [-HeightConstraintMinimum <Nullable`1>] [-HeightConstraintVAlign <top|middle|bottom>] [-HtmlTextBox <ScriptBlock>] [-IconAsImage] [-IconBrands <String>] [-IconColor <String>] [-Id <String>] [-Label <String>] [-Level <Nullable`1>] [-LinkColor <String>] [-Size <Nullable`1>] [-Title <String>] [-To <String[]>] [-WidthConstraintMaximum <Nullable`1>] [-WidthConstraintMinimum <Nullable`1>] [-X <Nullable`1>] [-Y <Nullable`1>] [<CommonParameters>]
#
Parameter set: FontAwesomeBrands

Examples

Authored help example

EXAMPLE 1

An example

Parameters

-ArrowsFromEnabled SwitchParameter optional
Parameter description
-ArrowsMiddleEnabled SwitchParameter optional
Parameter description
-ArrowsToEnabled SwitchParameter optional
Parameter description
-BorderWidth Nullable`1 optional
Parameter description
-BorderWidthSelected Nullable`1 optional
Parameter description
-Chosen Nullable`1 optional
Parameter description
-ColorBackground String optionalsets: Shape, Image
Parameter description
-ColorBorder String optionalsets: Shape, Image
Parameter description
-ColorHighlightBackground String optionalsets: Shape, Image
Parameter description
-ColorHighlightBorder String optionalsets: Shape, Image
Parameter description
-ColorHoverBackground String optionalsets: Shape, Image
Parameter description
-ColorHoverBorder String optionalsets: Shape, Image
Parameter description
-FixedX Nullable`1 optional
Parameter description
-FixedY Nullable`1 optional
Parameter description
-FontAlign String optional
This can be set to 'left' to make the label left-aligned. Otherwise, defaults to 'center'.
Possible values: center, left
-FontBackground String optional
When not undefined but a color string, a background rectangle will be drawn behind the label in the supplied color.
-FontColor String optional
Color of the label text.
-FontMulti String optional
If false, the label is treated as pure text drawn with the base font. If true or 'html' the label may be multifonted, with bold, italic and code markup, interpreted as html. If the value is 'markdown' or 'md' the label may be multifonted, with bold, italic and code markup, interpreted as markdown. The bold, italic, bold-italic and monospaced fonts may be set up under in the font.bold, font.ital, font.boldital and font.mono properties, respectively.
Possible values: false, true, markdown, html
-FontName String optional
Font face (or font family) of the label text.
-FontSize Nullable`1 optional
Size of the label text.
-FontStrokeColor String optional
This is the color of the stroke assuming the value for stroke is higher than 0.
-FontStrokeWidth Nullable`1 optional
As an alternative to the background rectangle, a stroke can be drawn around the text. When a value higher than 0 is supplied, the stroke will be draw
-FontVAdjust Nullable`1 optional
Parameter description
-HeightConstraintMinimum Nullable`1 optional
Parameter description
-HeightConstraintVAlign String optional
Parameter description
Possible values: top, middle, bottom
-HtmlTextBox ScriptBlock optional
Experimental TextBox to put HTML instead of Image using SVG
-Id String optional
Id of a node. If not set, label will be used as Id.
-Label String optional
Label for a diagram
-Level Nullable`1 optional
Parameter description
-LinkColor String optionalaliases: EdgeColor
Parameter description
-Shape String optionalsets: Shape
Parameter description
Possible values: circle, dot, diamond, ellipse, database, box, square, triangle, triangleDown, text, star, hexagon
-Size Nullable`1 optional
The size is used to determine the size of node shapes that do not have the label inside of them. These shapes are: image, circularImage, diamond, dot, star, triangle, triangleDown, hexagon, square and icon
-Title String optional
Label that shows up when hovering over node
-To String[] optional
Parameter description
-WidthConstraintMaximum Nullable`1 optional
Parameter description
-WidthConstraintMinimum Nullable`1 optional
Parameter description
-X Nullable`1 optional
Parameter description
-Y Nullable`1 optional
Parameter description
-BrokenImages String optionalsets: Image
Parameter description
-Image Uri optionalsets: Image
Parameter description
-ImageType String optionalsets: Image
Parameter description
Possible values: squareImage, circularImage
-IconAsImage SwitchParameter optionalsets: FontAwesomeSolid, FontAwesomeRegular, FontAwesomeBrands
Parameter description
-IconColor String optionalsets: FontAwesomeSolid, FontAwesomeRegular, FontAwesomeBrands
Parameter description
-IconSolid String optionalsets: FontAwesomeSolid
Parameter description
-IconRegular String optionalsets: FontAwesomeRegular
Parameter description
-IconBrands String optionalsets: FontAwesomeBrands
Parameter description

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.