Query Details
// List of Devices with no PrimaryUser IntuneDevices | where OS == "Windows" | where PrimaryUser startswith "000000" | project DeviceName, PrimaryUser
This query is looking for a list of devices from IntuneDevices that are running the Windows operating system and do not have a primary user assigned (indicated by the primary user starting with "000000"). The results will display the device name and the primary user.

Ugur Koc
Released: July 17, 2022
Tables
Keywords
Operators