Query Collection Windows Server Core

Vid3al 91 Reputation points
2022-10-05T09:16:51.083+00:00

There are many articles online, but I haven't found one functional.

I have to track down all the Server Cores whatever the version. (Win2008/2012/2016/2019/2022)

Does anyone know a functional query?

Thank you all for your support.

Microsoft Configuration Manager
0 comments No comments
{count} votes

8 answers

Sort by: Most helpful
  1. Garth 5,801 Reputation points
    2022-10-05T10:07:32.043+00:00

    what do you have now? what isn't working for you?

    0 comments No comments

  2. Vid3al 91 Reputation points
    2022-10-05T11:35:15.317+00:00

    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_G_System_OPERATING_SYSTEM.OperatingSystemSKU = 10 or SMS_G_System_OPERATING_SYSTEM.OperatingSystemSKU = 8

    but it does not collect the windows server cores.

    0 comments No comments

  3. Garth Jones 1,656 Reputation points MVP
    2022-10-05T12:30:24.367+00:00

    Did you look at the SKU for your core computers? Do they show 8 or 10 for that value?

    0 comments No comments

  4. Garth Jones 1,656 Reputation points MVP
    2022-10-05T12:31:40.287+00:00
    0 comments No comments

  5. Vid3al 91 Reputation points
    2022-10-05T12:58:54.393+00:00

    https://learn.microsoft.com/en-us/dotnet/api/microsoft.powershell.commands.operatingsystemsku?view=powershellsdk-1.1.0

    247793-image.png

    But my server windows core, in inventory shows the number 7

    247794-image.png

    a windows server 2019 not "core", still shows the number 7.

    I don't understand

    0 comments No comments