cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
KHabershon
Engaged Sweeper II
Anyone have a report or can create one that shows a list of a "single" user that has logged into multiple computers.

What I am trying to do is find out a list of users that potentially have multiple systems, like a desktop and then also has a laptop.
1 ACCEPTED SOLUTION
Hemoco
Lansweeper Alumni
Can you try this one:

Select query.Domain, query.Username, Count(query.Computername)
From (Select Distinct tblCPlogoninfo.Computername, tblCPlogoninfo.Domain,
tblCPlogoninfo.Username
From tblCPlogoninfo
Group By All tblCPlogoninfo.Computername, tblCPlogoninfo.Domain,
tblCPlogoninfo.Username) query
Group By query.Domain, query.Username
Order By Count(query.Computername) Desc

View solution in original post

14 REPLIES 14
Kreg
Engaged Sweeper II
Hi there,
Someone can share the query for LanSweeper 5 ?
I have the same need 🙂

Many thanks
KHabershon
Engaged Sweeper II
This is what I used specifically

SELECT query.Domain, query.Username, COUNT(query.Computername) AS Expr1, tblcomputers.Computer
FROM (SELECT DISTINCT Computername, Domain, Username, ADsite
FROM tblCPlogoninfo
GROUP BY ALL Computername, Domain, Username, ADsite) AS query INNER JOIN
tblcomputers ON query.Computername = tblcomputers.Computername

WHERE ADSite LIKE '%<YOUR AD SITE HERE>%'
GROUP BY query.Domain, query.Username, tblcomputers.Computer
ORDER BY tblcomputers.Computer
Kassim
Engaged Sweeper
Hi KHabershon,

would you be able to provide the complete SQL query with your addition?

Thanks
KHabershon
Engaged Sweeper II
Worked well thank you, I added the tblcomputers.Computer since I needed to find all the individual system names.
Hemoco
Lansweeper Alumni
Can you try this one:

Select query.Domain, query.Username, Count(query.Computername)
From (Select Distinct tblCPlogoninfo.Computername, tblCPlogoninfo.Domain,
tblCPlogoninfo.Username
From tblCPlogoninfo
Group By All tblCPlogoninfo.Computername, tblCPlogoninfo.Domain,
tblCPlogoninfo.Username) query
Group By query.Domain, query.Username
Order By Count(query.Computername) Desc