ConfigMgr Report: Autopilot Info Listing Computer Name, Serial Number and Hardware Hash
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.
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.
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.
- Hardware Hash: v_GS_MDM_DEVDETAIL_EXT01 (DeviceHardwareData0)
- Serial Number: v_GS_SYSTEM_ENCLOSURE (SerialNumber0)
- Computer Name: v_GS_SYSTEM (Name0)
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%')
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.
Building a SCCM SQL Query: Return Users Without Specific Software Installed on Any of Their Primary Devices
BUILDING A SQL QUERY REPORT, IN STEPS SCCM has a lot of built-in reports, but sometimes you need some info that isn't quite covered in any of them. Let's say you have users in SCCM with multiple primary devices -- and you want to know which users do NOT have...
A tip to deal with a little aggravation By default, SCCM's admin console doesn't search in subfolders! This might be because not everything searchable supports a folder structure, but in any case it's frustrating. But this can be manually turned on for a...
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...
Get that Pesky Column Name BackSomething I learned today while using Tableau Public that I wanted to jot down for later. The Problem: You have a table with a calculated column You add that calculated column to your sheet, but there is no header for that column shown...
It's Okay, I'm Used to It I'm trying to get started on a Peloton. Key Word: Trying Shoe recommendations I found are below Size 15 feet means not much fits me. It also means I don't get to think about shoe design much; I take what I can get. Company sent me the...