
I built a light, 100% HTML "security dashboard" to investigate TPM and Kernel Power faults. Escalated quickly to a critical logger. Need your feedback.
Hi everyone,
I wanted to share a diagnostic tool born from a personal need: tracking down some tricky, intermittent hardware crashes and Kernel-Power (Event ID 41) faults on my Windows 11 PC.
Why and Who!?
It all started with a frustrating Windows 11 and TPM issue, causing random crashes to a black screen followed by a sudden restart. After digging into the logs to find the root cause, it quickly turned into a personal mission to build something that would help me track it and stop it from happening again.
Since I am a web designer/marketing consultant and not a full-time PowerShell developer, I leveraged AI as my co-pilot to write the source code, while I handled the tool's core logic, feature requirements, and local testing.
The Problem
When trying to audit Windows Measured Boot telemetry via PowerShell, the native JSON logs in C:\Windows\Logs\MeasuredBoot are frequently corrupted with raw null bytes (\0) and invalid formatting (like stacked root objects without proper array encapsulation }{). This makes standard .ConvertFrom-Json commands fail instantly.
Also, standard Windows Event Logs are full of background noise, making quick troubleshooting during a session quite slow.
The Solution
I directed the AI to build a simple, read-only wrapper that cleans the Measured Boot bytes using regex, queries core hardware/security baselines, and spins up a local HTML dashboard driven entirely by Vue.js 3 and Tailwind CSS v4.
- No Compiled Binaries (.EXE): The entire project runs as open-source code. Complete transparency, zero malware false-positives.
- 100% Offline (< 500 KB): It copies minimal, local standalone versions of Vue and Tailwind straight to the user's
$env:TEMPfolder. No external network requests or remote CDNs are used. - Easy Sharing: Includes buttons to copy a formatted Markdown report directly to the clipboard or download a local JSON session snapshot for advanced analysis.
Interface Preview
(check screenshots on GiHub, link below)
The Project Files
The tool consists of three main files:
Launch-Diagnostics.bat(Automatically detects whether the system has PowerShell 7pwshor Windows PowerShell 5.1, launching everything cleanly)Run-Dashboard.ps1(Cleans the Measured Boot logs, maps CIM instances, filters the event logs, and builds the final JSON payload)template.html(The UI that reads the payload and renders the dashboard)
Link to the full source code: Win Logs on GitHub
Since the code was generated through AI prompting, I would love to get your professional feedback on the script's architecture, the regex cleansing block, or any optimizations to make the PowerShell wrapper even cleaner.
Behind the project: This tool was born from a personal need to track down my own hardware crashes and solve them. Since I'm not a full-time PowerShell developer, I leveraged AI to act as my co-pilot and write the source code, while I handled the system logic, feature architecture, and local testing. The code is 100% open and reviewable. Help to improve this project or copy-reuse-whatever freely.