SCCM Query for All Windows 10 version 1703 ?

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

This entry was posted in 1703, Windows 10. Bookmark the permalink.

One Response to SCCM Query for All Windows 10 version 1703 ?

  1. ogeccut says:

    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 ?

Leave a Reply

Your email address will not be published. Required fields are marked *

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