Following on from our recent posts for Configuration Manager collection queries, we have another one here for all devices that are Microsoft Exchange servers. Go ahead and create a new device collection and then use this query: select * from SMS_R_System inner join SMS_G_System_SERVICE on SMS_G_System_SERVICE.ResourceId = SMS_R_System.ResourceId where SMS_G_System_SERVICE.Name like “Microsoft Exchange%” Save the […]
SQL
SCCM – Create a device collection based on Domain Controller role
![SCCM - Create a device collection based on Domain Controller role 2 microsoft black logo](https://techygeekshome.info/wp-content/uploads/2017/05/microsoft.png)
We have another WQL query here for you today to enable you to create a Configuration Manager collection based on whether a device is used as a domain controller. Go ahead and create a new device collection and then use this query: Save the query and you should now see a collection of all your […]
SCCM – Hardware and Client Version SQL Query
![SCCM - Hardware and Client Version SQL Query 3 sql2016](https://techygeekshome.info/wp-content/uploads/2016/10/sql2016.jpg)
If you are looking for a SQL query to pull back hardware inventory information and the SCCM client version, then you can use the below to pull all this information together. SELECT S.Name0 as Name, S.Client_Version0 as [Cient Version], OS.Caption0 as [Operating System], CS.Manufacturer0 as Manufacturer, CS.Model0 as Model, PB.SMBIOSBIOSVersion0 as BIOS, PR.Name0 as CPU, […]
SCCM SQL Query for Software not in Add Remove Programs
![SCCM SQL Query for Software not in Add Remove Programs 4 sccm logo 600x400](https://techygeekshome.info/wp-content/uploads/2017/11/sccm-600x400.jpg)
If you are looking for an SCCM SQL query to create a report to search for machines which do not have a particular software installed, you can use the following: Then you can use the variable @displayname to choose from a drop down of software that is in the SCCM database pulled from client machines. […]
SCCM – Differences between Add Remove Programs Database Tables
![SCCM - Differences between Add Remove Programs Database Tables 5 microsoft black logo](https://techygeekshome.info/wp-content/uploads/2017/05/microsoft.png)
We had seen a few posts around the internet where people are asking the differences between the various Add_Remove_Programs data within the System Center Configuration Manager database. So we thought we would post a quick reference here to confirm which table of data means what. There are five different tables of data available to you […]
SCCM – SQL Query for all server CPU information
![SCCM - SQL Query for all server CPU information 6 SQL CPU Information](https://techygeekshome.info/wp-content/uploads/2017/12/SQL_CPU_Information.png)
If you are looking for an SQL query to use against your System Center Configuration Manager database to give you the ability to report on server CPU information, this is the query for you! You can use the below to get various information on the CPU or you can use SELECT * to bring back […]
SCCM – SQL Query for all Laptops
![SCCM - SQL Query for all Laptops 7 System Center Configuration Manager SCCM](https://techygeekshome.info/wp-content/uploads/2014/04/system-center-configuration-manager.jpg)
If you are using Configuration Manager, you will be aware that you can create a number of custom reports using the SCCM SQL data and SSRS to produce the reports. The best way to start creating a custom report is to ensure that you get your SQL query correct first. We have written hundreds of […]
System Center Orchestrator – SQL Query to show log file data
![System Center Orchestrator - SQL Query to show log file data 8 SystemCenter logo](https://techygeekshome.info/wp-content/uploads/2017/04/SystemCenter_logo.jpg)
If you are using System Center Orchestrator (SCORCH) Runbooks then you may have run into issues where the database is increasing in size due to the large amount of log files being created. This typically occurs when monitoring event logs on servers amongst some other runbook options in SCORCH. If you want to check how […]
SCCM SQL Query – Google Earth Installs
![SCCM SQL Query - Google Earth Installs 9 google earth pro MSI logo](https://techygeekshome.info/wp-content/uploads/2016/11/google-earth-12-700x406.jpg)
We have recently been asked to report on Google Earth installations within our SCCM environment. So, as we were already collecting the EXE file information within our hardware inventory, we could make use of the SoftwareFile data in the SCCM SQL database. Also, having spent some time Googling a query for Google Earth, we found that […]
SQL Server Management Studio (SSMS) 2016 Released
![SQL Server Management Studio (SSMS) 2016 Released 10 sql2016](https://techygeekshome.info/wp-content/uploads/2016/10/sql2016.jpg)
Microsoft have now released SQL Server Management Studio (SSMS) 2016 and is ready to download and use. You can get the download by clicking the button below: Download SSMS 2016 SQL Server Management Studio (SSMS) is an integrated environment for accessing, configuring, managing, administering, and developing all components of SQL Server. SSMS combines a broad group […]
SCCM SQL Query – Count Computers by Model
![SCCM SQL Query - Count Computers by Model 11 sql](https://techygeekshome.info/wp-content/uploads/2016/08/sql.png)
If you are using Configuration Manager and want to run an SQL query on your database to count the number of different models you have in your organisation, you can use this SQL query below using SSRS to create a custom report: More Queries Our full range of SQL and WQL Collection queries are available here. […]
SQL Server Version Numbers
![SQL Server Version Numbers 12 sql](https://techygeekshome.info/wp-content/uploads/2016/08/sql.png)
Below is a full list of SQL Server version numbers dating from version 7.0 through to the current 2016 RTM release. Codename RTM Service Pack 1 Service Pack 2 Service Pack 3 Service Pack 4 SQL Server 2016 NA 13.0.1601.5 SQL Server 2014 SQL14 12.0.2000.8 12.0.4100.1 12.0.5000.0 SQL Server 2012 Denali 11.0.2100.60 11.0.3000.0 11.0.5058.0 11.0.6020.0 […]