Quantcast
Channel: Configuration Manager 2012 - Application Management forum
Viewing all articles
Browse latest Browse all 4762

top console user

$
0
0
   select 
SYS.Netbios_Name0 as 'Computer Name', 
CU.TopConsoleUser0 as 'Top Console User'
  
 From v_R_System SYS 
join v_GS_SYSTEM_CONSOLE_USAGE cu on SYS.ResourceID = CU.ResourceID
  
ORDER BY SYS.Netbios_Name0


The above code works with one issue.  It only shows 89 computers.   If I remove the topconsoleusage from the SQL statement and return just the 'Computer Name' it returns 1,350 machines.  Which is how many machines we have.

What is wrong with my code that it only returns 89 computers when I try to find the TopConsoleUser?


I want it to show me all 1,350 machines and the TopConsoleuser for each.

Thanks,

Viewing all articles
Browse latest Browse all 4762

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>