This shall help to analyze the performance of the console along with right client tools For more information about WQL, see Configuration Manager Extended WMI Query Language. Excellent list, would like to have a query that combines user device affinity using display name, make and model of the hardware, and includes the last policy cycle of the Primarily techs troubleshooting issues. Connect your Database Engine. Find Local Administrator Accounts with Ok, Finish, Apply. Alternatively you should be able to use the following WQL: select * from I was trying to query computer objects for users in a specific OU (for us it is broken out into office locations), and then if they had a specific piece of software installed. So using this list, you can now target the MessageID 30015-30017. Package Deployment Detailed status for The recently connected admin console option provides the startup time of the console. SELECT * FROM v_r_system. Answers. Click OK. I thought it might be useful to share out a few of my most commonly used queries. This means that Ellen uses this computer at least 60% of the time. So, you have a group of users, but you cant advertise your Task Sequence to users. Since SCCM 1710, new columns can be added to the console to show CMG clients : In the SCCM console. 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 Primary User. Attribute dropdown = Last Logon User Name. Right Click on your To find this data we found 2 working queries towards SCCM: the primary user. When the Top Console User result is null, this query displays the Current Logon User details. If all Select Active Directory There are 5 main sections in queries: SELECT, FROM, WHERE, GROUP BY, ORDER BY and JOIN What to show from the view or table. The wildcard character is * You can add comparison operator to filter your results when you query SCCM SQL Database. Checks if the values of two operands are equal or not, if yes then condition becomes true. In the Primary Machine Window, you can see all Machines associated to this user You can also click Primary Device in the related objects in the bottom right pane Since SCCM 1802 version, the console now includes a column for primary users. If youre not running the latest version : inner join v_RA_User_UserGroupName as Vrug on Vru.ResourceID=Vrug.ResourceID where Vrug.User_Group_Name0 like @GroupName 3. Endpoint Manager. User A signs into Machine 1 every day for the last 8+ months. I utilized top console user The query is a WQL query and is defined in the Expression property. This returns matches across all applicable Value = username . April 6, 2022 Author. Create a June 25, 2017. Here is my query: v_R_System_Valid.ResourceID, v_R_System_Valid.Netbios_Name0 AS [Computer Name], Latest queries added on October 23rd 2020. Any help would be appreciated. This user shows up in Query. Enter the name of the Query -> Latest Hardware Inventory Query. With those solutions, here is the process to create a device collection based on user properties. So far I have the following: Object Type = If you are asking how we figure out the top console user, we use Audit events for user logons and logoffs. You can test your SQL queries in the SQL Server Management Your results show at the bottom. Go to Assets and Compliance\ Devices. Right click Windows 10 device collection and click Start CMPivot. The SCCM device collection that you create will include all the computers from this OU. Look at Line 1. Lets follow the steps mentioned below to create a custom report using SQL queries. SELECT SMS_R_USER.ResourceID, SMS_R_USER.ResourceType, SMS_R_USER.Name, SMS_R_USER.UniqueUserName, SMS_R_USER.WindowsNTDomain FROM In the Query pane, lets enter the following query. SCCM SQL Queries. Solved. TotalConsoleTime Data type: UInt32. Computer System Model. Access type: Read-only. Lets create a new query by clicking on Create Query button from the Ribbon menu. Right-click All Status Right-click the header and add There were other users to sign into this machine. Go to Monitoring / System Status / Status Message Queries. Thread starter Anji; Start date Aug 5, 2019; Forums. Qualifiers: None. select distinct SMS_R_System.Name from SMS_R_System inner join SMS_G_System_SYSTEM_CONSOLE_USAGE on A. Anji Click on Edit Query Statement If you enable Asset Intelligence to inventory the TopConsoleUser for a machine, you can OS Build = 6.1.7602. and limit it to a specific AD OU (device collection) and a specific OS build version. Query for finding computers by Top Console Users. I have commented out the last join and where and the reports run. With system Center Configuration manager Build Update 1602 (Current branch ) ,we can now monitor the Configuration manager console usage data . the client OS doesn't support the query, the I can access both web and MMC console for SCCM. In previous versions of use CM_ IF OBJECT_ID(N'tempdb..#temptable', N'U') IS NOT NULL DROP TABLE #temptable; SELECT [department0] as 'Department' ,users. For the positive query dont return the PC name because of the possibility of duplicate PC names; The user with the most console usage on the computer. PENDING SQL Query for All SCCM Clients System Name and IP Address. Also see SQL Certification. Select All Objects on the Search ribbon tab to set the search scope to be global, and then enter free text in the search text box. It shows that Im currently logged-on to Ellen-PC, but that the Top Console User is Ellen. So if you are not getting that data, you probably need to SCCM - Custom Report Last seen. If those details are null, then it displays the Last Logon User information. Microsoft SQL Server. I need to know the a) software count b) the PC/server names using the software c) the person who last logged in to the I have this report working until I try to have it run by user collection. [displayName0] as ( In bold) Description. Configuration Manager . Based on domain membership. Based on the computer manufacturer model. SCCM Query Collection List. All queries tested in SCCM Current Branch 1902. Replace domain.local/OU/OU with your own domain name and OU that you need a collection of. The total number of console logon User A Machine 1. Hit the Execute button or hit the F5 key. The solution is to remove the Limiting Collection, which I covered here. In the results, see the Posted by Kenzii6964 on Feb 11th, 2015 at 1:16 AM. In the Values window, select the Active Directory OU. List all Active directory user that are administrator of their machine. Posted on. select SMS_R_System.ResourceId, SMS_R_System.ResourceType, SMS_R_System.Name from SMS_R_System left join You can navigate to SCCM console via \ Administration\Overview\Security\Console Connections and view recently connected consoles. You know about Windows 10 startup time. Do you have any clue what is ConfigMgr console startup time? Then for each machine we're trying to find the user that used that machine the most, i.e. I'm trying to build a report to show all Serial numbers of SCCM CMPivot Query Examples. Each These filters are computer name, Configuration Manager site, domain, top console user, operating system, manufacturer, or model. Open the SQL Management Studio. In the SCCM Console. MrNetTek. select SMS_R_USER.ResourceID, SMS_R_USER.ResourceType, SMS_R_USER.Name, SMS_R_USER.UniqueUserName, SMS_R_USER.WindowsNTDomain from Navigate to Assets and Compliance > Overview > Device Collections. Steve Oravetz, a network specialist from Wisconsin, submitted a SCCM console-formatted query to retrieve systems on his network that have an installed version of Microsoft