ConfigMgr Report: Autopilot Info Listing Computer Name, Serial Number and Hardware Hash
Sometimes the Built-In SCCM Report Just Doesn’t Show What You Need
As part of a project, we wanted to take a batch of domain-joined laptops and manage them through Intune and Autopilot.
To enroll the devices, Intune needs certain info off of each computer. We installed the ConfigMgr client on each machine to get a hardware inventory list of each.
This turned out to be a better idea than we’d thought at the time.
Doesn’t ConfigMgr Have a Built-In Report For This?
Yes, it does!
Under Reports > Hardware – General is a report, Windows Autopilot Device Information.
However, this isn’t exactly what we needed. We had a customized script that could pull all of the Autopilot info off of a machine, but what I wanted was:
- Only the machines we were enrolling into Autopilot, and
- The list needed to show computer names

Craig Wall is a public sector systems administrator with experience in deployment and print management.
Why We Needed The Report
Because of the way we had the devices domain-joined beforehand, and our plan to get them done as remotely as possible, we needed to make sure we could easily match up the domain-joined, pre-enrollment names with the device serial.
The hardware hash for each in this case may only be necessary in certain situations — we had a customized script for our environment to pull that info.
However, I’m always game to work on my reporting skills.
The Tables/Views Needed
- Hardware Hash: v_GS_MDM_DEVDETAIL_EXT01 (DeviceHardwareData0)
- Serial Number: v_GS_SYSTEM_ENCLOSURE (SerialNumber0)
- Computer Name: v_GS_SYSTEM (Name0)
The SQL Query
SELECT v_GS_SYSTEM.ResourceID AS [v_GS_SYSTEM ResourceID],v_GS_SYSTEM.Name0,v_GS_MDM_DEVDETAIL_EXT01.ResourceID AS [v_GS_MDM_DEVDETAIL_EXT01 ResourceID],v_GS_MDM_DEVDETAIL_EXT01.DeviceHardwareData0,v_GS_SYSTEM_ENCLOSURE.ResourceID AS [v_GS_SYSTEM_ENCLOSURE ResourceID],v_GS_SYSTEM_ENCLOSURE.SerialNumber0 FROM v_GS_SYSTEM INNER JOIN v_GS_MDM_DEVDETAIL_EXT01 ON v_GS_SYSTEM.ResourceID = v_GS_MDM_DEVDETAIL_EXT01.ResourceID INNER JOIN v_GS_SYSTEM_ENCLOSURE ON v_GS_SYSTEM.ResourceID = v_GS_SYSTEM_ENCLOSURE.ResourceID WHERE (v_GS_SYSTEM.Name0 like 'LAPTOP%')
The Output
I whipped up a quick table in Report Builder for this.
Because the hashes are so long, I didn’t want all of them listed in one big mess. So I left grouping on for the table.
This resulted in each computer being its own “group” in the table — I had to click the + icon next to each laptop to expand the row and show the serial and hash.
This worked out well for the specific use of this report, but the report couldn’t be emailed to anyone because those + signs don’t show up in the report email — something to watch for if you were going to send a report in the email instead of sending the report URL.
More Posts Like This
Co-Management MDM Enroll Error: Device Credential (0x0), Failed (Unknown Win32 Error code: 0xcaa9001f)
Public sector systems admin, specializing in device management, mobility and deployment. I recently setup an SCCM Co-Management home lab. When testing the MDM enrollment to Intune of an AD-joined device, I ran into a 0xcaa90014 error. The failure showed up in two...
SCCM Client Push: What It Means to Use the Site’s Computer Account, and Why You Might Use It
Public sector systems admin, specializing in device management, mobility and deployment. To use a Service Account or Not? That is the question. When setting up Client Push in Configuration Manager, the Admin Console will note that the account must be a local...
SCCM: Delete Old or Expired Client Operations Entries
Microsoft Endpoint Configuration Manager (MEMCM) Admin Console Location: \Monitoring\Overview\Client Operations Here's the Solution Straight Away: In Your ConfigMgr admin console, connect to your site via PowerShell and run the following script as a...
More From Craig
Intune Win32 App Deployment Guide: Preparing .intunewin Files
Public sector systems admin, specializing in device management, mobility and deployment. Microsoft seems to be pushing us towards Win32 apps over Line-of-Business Apps. However, Win32 apps are in .intunewin format, which require a few extra steps. Let's go over a...
Co-Management MDM Enroll Error: Device Credential (0x0), Failed (Unknown Win32 Error code: 0xcaa9001f)
Public sector systems admin, specializing in device management, mobility and deployment. I recently setup an SCCM Co-Management home lab. When testing the MDM enrollment to Intune of an AD-joined device, I ran into a 0xcaa90014 error. The failure showed up in two...
SCCM Client Push: What It Means to Use the Site’s Computer Account, and Why You Might Use It
Public sector systems admin, specializing in device management, mobility and deployment. To use a Service Account or Not? That is the question. When setting up Client Push in Configuration Manager, the Admin Console will note that the account must be a local...