Back to ConfigMgr main menu
Back to MDM Menu
Collection of Windows Phone 8 devices
select SMS_R_System.ResourceId, SMS_R_System.ResourceType, SMS_R_System.Name, SMS_R_System.SMSUniqueIdentifier, SMS_R_System.ResourceDomainORWorkgroup, SMS_R_System.Client from SMS_R_System inner join SMS_G_System_DEVICE_OSINFORMATION on SMS_G_System_DEVICE_OSINFORMATION.ResourceID = SMS_R_System.ResourceId where SMS_G_System_DEVICE_OSINFORMATION.Platform like "Windows Phone" and SMS_G_System_DEVICE_OSINFORMATION.Version like "8.0%"
Collection of Windows Phone 8.1 devices
select SMS_R_System.ResourceId, SMS_R_System.ResourceType, SMS_R_System.Name, SMS_R_System.SMSUniqueIdentifier, SMS_R_System.ResourceDomainORWorkgroup, SMS_R_System.Client from SMS_R_System inner join SMS_G_System_DEVICE_OSINFORMATION on SMS_G_System_DEVICE_OSINFORMATION.ResourceID = SMS_R_System.ResourceId where SMS_G_System_DEVICE_OSINFORMATION.Platform like "Windows Phone" and SMS_G_System_DEVICE_OSINFORMATION.Version like "8.1%"
Collection of Windows RT devices
select SMS_R_System.ResourceId, SMS_R_System.ResourceType, SMS_R_System.Name, SMS_R_System.SMSUniqueIdentifier, SMS_R_System.ResourceDomainORWorkgroup, SMS_R_System.Client from SMS_R_System inner join SMS_G_System_COMPUTER_SYSTEM on SMS_G_System_COMPUTER_SYSTEM.ResourceId = SMS_R_System.ResourceId where SMS_G_System_COMPUTER_SYSTEM.Model like "Surface%"
Collection of iPhones
select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,
SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,
SMS_R_SYSTEM.Client from SMS_R_System inner join SMS_G_System_DEVICE_COMPUTERSYSTEM on SMS_G_System_DEVICE_COMPUTERSYSTEM.ResourceId = SMS_R_System.ResourceId where SMS_G_System_DEVICE_COMPUTERSYSTEM.DeviceModel like "%iphone%"
Collection of iPads
select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,
SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,
SMS_R_SYSTEM.Client from SMS_R_System inner join SMS_G_System_DEVICE_COMPUTERSYSTEM on SMS_G_System_DEVICE_COMPUTERSYSTEM.ResourceId = SMS_R_System.ResourceId where SMS_G_System_DEVICE_COMPUTERSYSTEM.DeviceModel like "%ipad%"
Collection of Android devices
select SMS_R_System.ResourceId, SMS_R_System.ResourceType, SMS_R_System.Name, SMS_R_System.SMSUniqueIdentifier, SMS_R_System.ResourceDomainORWorkgroup, SMS_R_System.Client from SMS_R_System inner join SMS_G_System_DEVICE_OSINFORMATION on SMS_G_System_DEVICE_OSINFORMATION.ResourceID = SMS_R_System.ResourceId where SMS_G_System_DEVICE_OSINFORMATION.Platform like "Android%"
Hi Garry,
ReplyDeleteHow to create my mobile device colletions?
Same as any other device collection if you have a SQL query
Deletehttp://henkhoogendoorn.blogspot.ie/2011/10/create-new-windows-collections-based-on.html
Hi Gerry another great post! I do have one issue we actually have all these devices in our SCCM environment. I was able to get ALL the queries to work except the Android one. Any ideas? Thanks!
ReplyDeleteHave a look at the properties and hardware inventory of one of the Android devices. What is listed for "Mobile Device Computer System"?
DeleteAndroid query doesn't work. The string "Android" isn't set in "SMS_G_System_DEVICE_COMPUTERSYSTEM.DeviceModel", but in "SMS_G_System_DEVICE_OSINFORMATION.Platform".
ReplyDeleteRegards
Quite right. I've amended it above. Thanks.
DeleteHi Gerry,
ReplyDeleteI've have created a device collection off all the ipad device in our company. This is working just fine. Now I want to know which device belongs to which user. Could you help me.
That is a challenge. Have a look at this tool by Peter van der Woude.
Deletehttps://www.petervanderwoude.nl/post/new-tool-remote-mobile-device-manager/
Hi,
DeleteNone of these seem to work for us? Do I have to specify the strings somewhere first?
No, you don't have to do anything. These can be used to create queries or collections. They have all been previously verified. I've just now successfully tested the iPhone one again.
DeleteHi Gerry,
ReplyDeletewhat will be the output values of SMS_R_System.MDMStatus ? and please explain the meaning of output values like 0,1,2 and Null.
Thanks
Vignesh