Skip to content

Instantly share code, notes, and snippets.

$test = @"
blah
blah
blah
Added "tag" to HTML tags to ensure the forum doesn't strip the tags
<htmltag>
<headtag>
<titletag>Some HTML content</titletag>
function Out-MyReport {
[CmdLetBinding()]
param(
$obj
)
begin{}
process{
$stringBuilder = New-Object System.Text.StringBuilder
$null = $stringBuilder.Append("<table>`r`n")
#My Distribution groups had spaces in them and Group-Object did not like it, so I just created another column to group with no spaces