
Export the CMPivot query report results to CSVģ. Create a direct membership device collectionsĢ.

The available columns vary based on the entity and the query.The SCCM CMPivot results pane displays the data returned by active clients for the query, and you have some right-click options, as I mentioned below. In this case CMPivot Architecture and Sample Queries 3 What are the Actions you can launch from SCCM CMPivot?Īpart from querying the online devices in almost real-time, what other actions can you take directly from CMPivot? Well, you can see some handy options available for you. #PRM: # will prompt the user to enter information, the message prompt and data type will match that of the field you have targeted. The WHERE statement is the condition by which results are filtered. FROM SMS_R_SystemįROM statement indicates which table the information is stored in, in this case SMS_R_SYSTEM WHERE SMS_R_System.MACAddresses = #PRM:SMS_R_System.MACAddresses# You can use the query builder to add/remove fields to your preference. The SELECT statement is used to decide what information you would like retrieved by the Query in this case the following: SMS_R_System.Name Query Statement Explained SELECT SMS_R_System.Name, SMS_R_System.MACAddresses You will be presented with the results for a particular MAC address.> Enter the MAC Address you would like to query

WHERE SMS_R_System.MACAddresses = #PRM:SMS_R_System.MACAddresses#

> Paste the following query into the Query Statement SELECT SMS_R_System.Name, SMS_R_System.MACAddresses > Comments: Brief description of what the query is for

> Name: All Systems – Find Clients with a given MAC Address Having a browse around turns out this functionality already exists! There are many ways to skin this particular cat but this seemed like a viable scenario to demo a how to query the ConfigMgr database to scan for instances where a client had a particular MAC Address. In this case the end-point would not behave as expected as the deployments the client would receive may not be the ones you expected. We discovered an issue on a client site where multiple distinct clients could have the same MAC address. Using SCCM to query the ConfigMgr database to find clients with duplicate MAC addresses.
