Skip to content

Turning Powershell object into the HTML table using downloaded datatables.net

License

Notifications You must be signed in to change notification settings

LukaszWasko/Out-HTMLDataTable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Out-HTMLDataTable

Turning Powershell object into the HTML table using downloaded datatables.net

Main script's futures:

  • sort columns
  • dynamically global search
  • dynamically filter per columns
  • set row color depends on 'status' row (critical|stopped=red; OK|running=green; warning=yellow)
  • export to pdf/excel/csv and copy/print
  • save state (like order settings)
  • row selection

How to start?

. "C:\scripts\Out-HTMLDataTable.ps1"

How folder structure should looks like?

.\www\
       datatables\examples
       datatables\extensions
       datatables\media
       icons\favicon.png
.\table01.htm

How it's work?

Example #1

Example #2

Notes

Notice, that some files are downloaded from Internet:

So if you want to open reports on systems, that do not have Internet access just download these files and change Intenret paths to local paths in function.

Tested on:

  • Windows 10
  • Powershell 5.1
  • DataTables v1.10.13
  • free Mongoose Web Server v6.5

More Info

You can find more info and examples in Out-HTMLDataTable.ps1 file!

Author: Lukasz Wasko

About

Turning Powershell object into the HTML table using downloaded datatables.net

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published