SCCM Collection Query for Virtual Machines

Just a quick post to add to our list of SCCM collection queries. We needed one today for a collection of virtual machines only. This query you can use to create a collection to do this: You can check out our other SCCM collection queries by following this link. 📚 Related Guides SQL Queries for […]

SCCM Collection Query For Virtual Machines

Just a quick post to add to our list of SCCM collection queries. We needed one today for a collection of virtual machines only.

This query you can use to create a collection to do this:

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.IsVirtualMachine = "1"

You can check out our other SCCM collection queries by following this link.

🛠️

Gear We Recommend

Running this in a home lab? Here’s the gear that keeps our test environment reliable.

Browse our Home Lab Essentials picks on Amazon

As an Amazon Associate, TechyGeeksHome earns from qualifying purchases.


Discover more from TechyGeeksHome

Subscribe to get the latest posts sent to your email.

Andrew Armstrong

Andrew Armstrong is a UK-based IT professional with 26+ years of hands-on experience in Windows, Windows Server, SCCM/ConfigMgr, Active Directory, PowerShell, and enterprise infrastructure.

He founded TechyGeeksHome in 2010 and has published over 1,500 practical guides covering real-world IT problems and solutions. When not solving IT problems,

Andrew develops free Windows utilities including Ultimate Settings Panel, which has been downloaded over 850,000 times.