Using PSWriteHTML HTML files to create Dashboards/Pages inside PowerShell Universal

Product: PowerShell Universal
Version: 2.11.1

I have alot of reports written using the PSWriteHTML Module and I was looking for a way to integrate the existing HTML Files that get created from the report scripts into either a PSUniversal Page or Dashboard without having to do too much manual changes on the scripts.

Would something like this be possible? Or would it be better to re-create the reports inside of a PowerShell Universal Dashboard?

You can create a published folder for the reports:

Then you can generate the reports with PSWriteHTML however you want.


Then in your dashboard, you can link to them with iframes or just links.

New-UDDashboard -Content {
    New-UDIFrame -Uri "/reports/testmyhtml.html" 
    New-UDLink -url "/reports/testmyhtml.html"  -OpenInNewWindow -Text 'Open Report'

Thank for you this! That’s what i was looking for… Is there a way to increase the size of the iFrame? It works but it transforms into a very small window on a New-UDPage

You can probably use custom styling (CSS) to tweak the size