Introduction
Here’s a quick post with a new query for All Windows 10 Version 1703 devices (excluding LTSB)
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_OPERATING_SYSTEM on SMS_G_System_OPERATING_SYSTEM.ResourceId = SMS_R_System.ResourceId
where SMS_R_System.OSBranch != 2
and (SMS_R_System.OperatingSystemNameandVersion =
‘Microsoft Windows NT Workstation 10.0’
or SMS_R_System.OperatingSystemNameandVersion =
‘Microsoft Windows NT Workstation 10.0 (Tablet Edition)’)
and SMS_G_System_OPERATING_SYSTEM.BuildNumber in (‘15063’)
I’ll post a complete PowerShell script later incorporating this new query
that’s it !
cheers
niall
I am getting an error ‘Invalid object name ‘SMS_R_System’.’
when i try to run this from SQL?
Do i need to run this from sccm ?