Error editing Query Rule for Device Collection in SCCM

Dlock 20 Reputation points
2023-08-02T13:44:02.2333333+00:00

Question:

How can I fix a corruption issue I am encountering when editing my Query Rule in the membership rules under the device collection in SCCM? I created a Query Rule with the following code snippet:

User's image

However, when I go to edit the Query Rule in the collection, SCCM alters the class attribute, and I am unable to proceed.

User's image

I need help in identifying the cause of this problem and a solution that can stop this from affecting me every time I create query rules in any device collection in SCCM. Please provide any codes snippets or relevant documentation that may help in resolving this issue.

Microsoft Configuration Manager Deployment
Microsoft Configuration Manager Deployment
Microsoft Configuration Manager: An integrated solution for for managing large groups of personal computers and servers.Deployment: The process of delivering, assembling, and maintaining a particular version of a software system at a site.
992 questions
Microsoft Configuration Manager Application
Microsoft Configuration Manager Application
Microsoft Configuration Manager: An integrated solution for for managing large groups of personal computers and servers.Application: A computer program designed to carry out a specific task other than one relating to the operation of the computer itself, typically to be used by end users.
493 questions
Microsoft Configuration Manager
0 comments No comments
{count} votes

Accepted answer
  1. AllenLiu-MSFT 45,531 Reputation points Microsoft Vendor
    2023-08-03T02:22:40.72+00:00

    Hi, @Dlock

    Thank you for posting in Microsoft Q&A forum.

    Could you show me a snapshot of how SCCM alters the class attribute?


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Add comment".

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Garth 5,801 Reputation points
    2023-08-02T15:10:06.3866667+00:00

    Collections have a predetermine columns that will be selected no matter what you do. Collection will never has columns like displayname , version, last logon, etc.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.