Recently, I've been experimenting with the powershell functions "Convertto-HTML" and ConvertTo-EnhancedHTML (a downloadable module). While searching online, I stumbled upon a visually appealing table template that utilizes CSS and Angular. Unfortunately, my expertise in CSS and Angular is limited, so I am seeking assistance to properly format the output.
By using
Get-IAMUserList | Select Username, PasswordLastUsed, UserID |ConvertTo-Html -PreContent "<h2>User List</h2>"|Out-File report.htm
The produced result is a simplistic HTML table (excluding the header).
<body>
<h2>User List</h2>
<table>
<colgroup><col/><col/><col/></colgroup>
<tr><th>UserName</th><th>PasswordLastUsed</th><th>UserId</th></tr>
<tr><td>Joe</td><td>1/3/2020 4:36:24 PM</td><td>IPNB63</td></tr>
<tr><td>Sally</td><td>1/1/0001 12:00:00 AM</td><td>GRUIF</td></tr>
<tr><td>Joe</td><td>1/1/0001 12:00:00 AM</td><td>JI4H</td></tr>
<tr><td>user</td><td>1/1/0001 12:00:00 AM</td><td>Z4PM2</td></tr>
</table>
</body>
I'm interested in incorporating the code from this website for styling the data. It serves as a great example and template. Any guidance or support would be highly appreciated. Here is the link --Link to Code
To clarify - I have researched numerous CSS examples for displaying powershell output and tried several of them. Many are straightforward and allow me to format my data adequately. However, I am drawn to the more advanced designs showcased in the provided link but lack the understanding of CSS/JS required to implement them effectively. Thank you for any assistance!