SCCM WQL query to identify the Windows 10 machines with our organization image

Hi Team,

I have a requirement from our customer to find the windows 10 machines which are using our customized image and the ones without(Vanilla). This is because we have many users who brings their own windows 10 laptops and connects to our domain. I taught of using registry key which gets created using OSD task sequence variable but not sure how to do it. I need to create a collection to get this list of machines to identify the Windows 10 machines with our organization image. Please let me know the best solution query for this to find the machine list using registry or OSD Task sequence variable or any other best possible way.

Thanks in advance.
sunil cherukuriSystems AdministratorAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Michael PfisterCommented:
Adding a registry key to the hardware inventory is described here:

Adding "your" key to the installation task sequence is easy:
Add a step "Run Command Line" and enter something like this

cmd /c reg add HKLM\Software\Company /v "CompanySetup" /d "Company"  /t REG_SZ /f

Open in new window

yo_beeDirector of Information TechnologyCommented:
What version of Win 10 are you using for custom image? If it is enterprise most likely the vanilla is Pro or less.  
Are these BYOD machines objects in AD?

Are they part of the discovery scope in SCCM?

If both are true you can create a custom query by importing the System Resource > All Systems  and edit the query to also include the OS version.
Here is my example.  I only have W7 Ent (No BYOD in my domain)  so you will not be able to really see, but if you do the same in your SCCM and the machines are SCCM you should see the different OS (if they are using a Ent vs Pro)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 10

From novice to tech pro — start learning today.