Users Logged onto multiple computers.
mmuni
What would be the best way to setup a report that checks for duplicates?
For example a list of computers, but only ones for a user that is currently logged on to multiple computers.
0
Comments
I used a SQL report and was able to get a list of users who were logged onto multiple computers and how many they were logged into.
select Computers.Name as "Computer Name", Computers.CurrentUser, COUNT(*) from Computers where <ComputerFilter> group by Computers.CurrentUser having COUNT(*) > 1
however I would like to have a list of computers for which the user is also logged onto another computer.
Hi Mmuni,
Shane was able to come up with a fancy SQL report that should give you what you want:
SELECT UPPER(CurrentUser) AS User, Name AS Computer
FROM Computers where CurrentUser IN (SELECT CurrentUser FROM Computers GROUP BY CurrentUser HAVING COUNT(*) > 1)
AND NOT CurrentUser = '' AND <ComputerFilter>
ORDER BY Name ASC
I wasn't able to get the ORDER BY to play nice, though.