Get-SystemTruth

A PowerShell Script That Makes Your PC Talk

Every computer keeps secrets — tucked away in its chassis, buried in its registry, whispered between hardware components. This PowerShell script, aptly named in spirit as “Get-SystemTruth,” acts like your digital detective, prying open the case file and spilling every detail into the light.

It begins with identity. Like a skilled profiler, it determines whether it’s dealing with a portable laptop that roams the world or a steadfast desktop holding the fort. It scans the room for accomplices — monitors — and reports back with a precise headcount, even noting whether a display is built-in or part of a bigger multi-screen command center.

Then it moves on to the vital statistics:

  • Model and serial number for that official hardware fingerprint.

  • Total installed RAM in gigabytes, with a full dossier on each module — capacity, speed, manufacturer, and even part number.

  • CPU details so exact they could go on a spec sheet — model, cores, threads, all neatly packaged.

  • A monitor setup description that reads like a mission brief.

  • The logged-in username, found through multiple methods so no one can hide behind a locked screen.

The script is built with adaptability in mind. If one command stumbles, another steps in to finish the job. It uses both modern CIM queries and older WMI calls, ensuring it runs smoothly across different Windows environments.

At the end of its investigation, the script delivers a clean, structured report you can review instantly or export to CSV. It’s an asset for IT pros conducting fleet-wide audits, tech support teams diagnosing issues, or curious power users who just want to know exactly what their machine is made of.

Windows PowerShell
PS C:\> Mon: 2 (built-in, ext), Model: HP EliteBook 850, Ser: ABC12345, CPU: i7-8650U, C: 4, T: 8, RAM: 64GB (2x32GB@5600 Samsung/M471A1K43CB1-CTD), User: jaroga PS C:\>

With one run, your PC’s story is laid bare — precise, organized, and impossible to deny.

View on GitHub

Leave a Comment