Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

SOLVED Query - Windows Server 2016 and Windows Server 2019

  • Thread starter Thread starter Sokoban
  • Start date Start date
  • Replies Replies 8
  • Views Views 15K
Status
Not open for further replies.

Sokoban

Well-Known Member
Messages
102
Reaction score
7
Points
18
Hi
How will I do to create a Query to a SCCM collection for
  • Windows Server 2016
  • Windows Server 2019
Thanks in advance ;-)

Sokoban
 
you would create this just as you would any other collection.

what do you have now and what isn't working with it?
 
Hi Garth
The problem is that query Collection, both Windows Server 2016 and 2019 servers wants collect in the same query ..

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
where
SMS_R_System.OperatingSystemNameandVersion like "%Server%"
and
SMS_R_System.OperatingSystemNameandVersion like "%10.0%"

**********************************************************
Sokoban
 
Yes I have to collect in the separate collections. Windows Server 2016 is in one and Windows Server 2019 is in the another...
 
but it is unclear do you look at the OS class attribute called caption? are they different? is so base your query off of that.
 
...You give me questions was an approach which all the time, you can or cannot help me?
 
by telling you where to looking is helping you. did you look at OS caption?
plus i'm no where near me lab, it is 4000 km away from me right now.
 
The soultion,

Windows Server 2016

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_SYSTEM on SMS_G_System_SYSTEM.ResourceID = SMS_R_System.ResourceId inner join SMS_G_System_OPERATING_SYSTEM on SMS_G_System_OPERATING_SYSTEM.ResourceID = SMS_R_System.ResourceId where SMS_G_System_SYSTEM.SystemRole = "Server" and SMS_G_System_OPERATING_SYSTEM.Version = "10.0.14393"

Windows Server 2019

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_SYSTEM on SMS_G_System_SYSTEM.ResourceID = SMS_R_System.ResourceId inner join SMS_G_System_OPERATING_SYSTEM on SMS_G_System_OPERATING_SYSTEM.ResourceID = SMS_R_System.ResourceId where SMS_G_System_SYSTEM.SystemRole = "Server" and SMS_G_System_OPERATING_SYSTEM.Version = "10.0.17763"

Thase case is now solved, thanks ;-)

Sokoban
 
Status
Not open for further replies.
Back
Top