Query Details

Device Devices Without Primary User

Query

// List of Devices with no PrimaryUser
IntuneDevices
| where OS == "Windows"
| where PrimaryUser startswith "000000"
| project DeviceName, PrimaryUser

Explanation

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.

Details

Ugur Koc profile picture

Ugur Koc

Released: July 17, 2022

Tables

IntuneDevices

Keywords

Devices,Intune,PrimaryUser,Windows,OS,DeviceName

Operators

IntuneDeviceswhere==startswithproject.

Actions