Create SCCM Windows Server 2022 Device Collection

In this article, I will cover the steps to create SCCM Windows Server 2022 device collection. Windows Server 2022 is out, and you can create a device collection in SCCM to group all servers.

Windows Server 2022 is the latest server operating system by Microsoft. You can download and install Windows Server 2022. You can actually install it in an isolated setup. Test it thoroughly and check your application compatibility and then roll out in production.

Since Windows Server 2022 is built on the foundation of Windows Server 2019, the SCCM 2107 client agent should be compatible with Windows Server 2022. I performed a client push on Windows Server 2022 and the client agent installation was successful.

Microsoft lists the supported operating systems for client agent installation and Windows Server 2022 is supported for client installation. However, you must ensure you are using Configuration Manager 2107 and above to install agents on Server 2022. The SCCM client agent is fully compatible with Windows Server 2022.

More details are available on Supported OS versions for clients and devices for Configuration Manager article published by Microsoft.

Windows Server 2022 Client Agent Support
Windows Server 2022 Client Agent Support

Before we proceed, let me confirm the Windows Server 2022 build number. You can get the build number details from the device discovery data in SCCM console.

  • Windows Server 2022 Operating system build number -10.0.20348
  • Windows Server 2022 Full Operating system build number -10.0.20348.169

You can view the following YouTube Tutorial to create device collection for Windows Server 2022 in SCCM.

Create SCCM Windows Server 2022 Device Collection

Let’s look at the steps to create SCCM Windows Server 2022 device collection. We will create a new device collection for Windows Server 2022 in SCCM that will group all Window 2022 servers.

Launch the SCCM console and go to Assets and Compliance\Overview\Device Collections. Right click Device Collections and select Create Device Collection.

Specify the device collection name for ex. Windows Server 2022. For limiting collection, click the Browse button and select All Systems. Click Next.

Create SCCM Windows Server 2022 Device Collection
Create SCCM Windows Server 2022 Device Collection

On the Membership Rules window, click Add Rule and select Query Rule.

Create SCCM Windows Server 2022 Device Collection
Create SCCM Windows Server 2022 Device Collection

On the Query rule properties box, specify the name of the query and click Edit Query Statement.

Create SCCM Windows Server 2022 Device Collection
Create SCCM Windows Server 2022 Device Collection

To create device collection for Windows Server 2022 in SCCM, use the below query. The below query uses the Windows Server 2022 build number – 10.0.20348.

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.Version = "10.0.20348"

Paste the query and click the green arrow icon. This will run the query and display the results.

Create Windows Server 2022 SCCM Device Collection
Create Windows Server 2022 SCCM Device Collection

In the query results window, we can confirm the query works fine. We see the query results displaying Windows Server 2022 computers. Close the query results preview window.

Create Windows Server 2022 SCCM Device Collection
Create Windows Server 2022 SCCM Device Collection

You can also use the following criteria to create SCCM Windows 10 21H1 device collection.

  • Criterion Type – Simple Value
  • Attribute Class – Operating System
  • Attribute – Version
  • Operator – is equal to
  • Value – 10.0.20348

Click OK thrice and continue with the create device collection wizard.

Complete the remaining steps of create device collection wizard and close the wizard.

Collection Wizard
Close Create Device Collection Wizard

Finally, if you wish to schedule a full update on this device collection, you can do that from the device collection properties. Right click Windows Server 2022 device collection and click Properties. Click Membership tab and at the bottom you can change the schedule for full update on the collection. Click the Schedule button, and you can change it from default 7 days to your requirement. Hit Apply and OK.

Schedule Windows Server 2022 Device Collection Update
Schedule Windows Server 2022 Device Collection Update

After few minutes, in the SCCM console, check the member count of Windows Server 2022 device collection. The collection should include all the Windows 2022 servers.

One Comment

  1. This is working for servers with OS build 10.0.20348.1006 but not for 10.0.2348.1366 and at one point I changed the query to look for .1366 builds. And found nothing. What’s the catch?

Leave a Reply

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