SCCM Report primary device for user

So a customer of mine wanted a report from configuration manager to list primary devices for their users.

Here is the SQL query I used to create this report.

select

 vru.Name0 as [User Name],
 vrs.Name0 as [Computer Name]
 from
 v_UsersPrimaryMachines upm
 left join v_R_User vru
 on upm.UserResourceID = vru.ResourceID
 left join v_R_System vrs
 on upm.MachineID = vrs.ResourceID

 WHERE vru.Name0 != 'Null'

 order by vrs.Name0

2 thoughts on “SCCM Report primary device for user”

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top