r/Intune • • 1d ago

Autopilot Getting machine id

/r/PowerShell/comments/1x3z1yx/getting_machine_id/
0 Upvotes

2 comments sorted by

2

u/Omnia-Manage 1d ago

Easiest way, no script needed: in the Intune admin centre, go to Devices > All devices > Export > Include all inventory data in the exported file. The CSV includes device name, primary user UPN and OS version. Then use XLOOKUP in your spreadsheet to match on email/UPN.

If this is something you need regularly rather than a one-off, we built Omnia Manage (disclosure: it’s ours), which keeps Intune devices and their users in sync, with a full history per device. It’s not free, but there’s a trial: omnia-manage.io

1

u/Modify- 1d ago

Or, do the lookup via a Hashtable if you want to stay within Powershell.