Skip to content

PowerShell Module to convert PSObjects to formatted Html

License

Notifications You must be signed in to change notification settings

Jaykul/ConvertToHtml

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ConvertToHtml

PowerShell Module to convert PSObjects to formatted Html (targeted to Outlook)

Build status

Stories in Ready

WMF/PowerShell 5 Installation

From PowerShell run:

Register-PSRepository -Name converttohtml -SourceLocation https://ci.appveyor.com/nuget/converttohtml
Install-Module converttohtml -Scope CurrentUser

WMF/PowerShell 4 Installation

  1. Download nuget.exe from NuGet.org
  2. &nuget.exe install ConvertToHtml -source https://ci.appveyor.com/nuget/converttohtml -outputDirectory "$env:USERPROFILE\Documents\WindowsPowerShell\Modules" -ExcludeVersion

Examples/Testing:

If you make changes, please run the pester tests, and run these two tests:

Get-Process | ConvertTo-FormattedHtml -OutClipboard

paste the results into outlook and verified they are formatted correctly

dir| Select-Object Mode, lastwritetime, length, Name | ConvertTo-FormattedHtml -OutClipboard

paste the results into outlook and verified they are formatted correctly

Issues

For HTML to work in Outlook 2013 and older, only inline styles can be used.

About

PowerShell Module to convert PSObjects to formatted Html

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 100.0%