‎01-07-2013 05:32 PM
Solved! Go to Solution.
‎01-08-2013 09:59 AM
Select Top 1000000 Query1.Username, Query1.Domain As UserDomain, Query1.Firstname, Query1.Lastname, Query1.Name, Query1.Displayname, Query1.LastLogon, tblComputers.Computer, tblComputers.Domain As ComputerDomain From (Select tblCPlogoninfo.Username, tblCPlogoninfo.Domain, tblADusers.Firstname, tblADusers.Lastname, tblADusers.Name, tblADusers.Displayname, Max(tblCPlogoninfo.logontime) As LastLogon From tblCPlogoninfo Left Join tblADusers On tblADusers.Username = tblCPlogoninfo.Username And tblADusers.Userdomain = tblCPlogoninfo.Domain Group By tblCPlogoninfo.Username, tblCPlogoninfo.Domain, tblADusers.Firstname, tblADusers.Lastname, tblADusers.Name, tblADusers.Displayname) Query1 Inner Join tblCPlogoninfo On tblCPlogoninfo.logontime = Query1.LastLogon And tblCPlogoninfo.Domain = Query1.Domain And tblCPlogoninfo.Username = Query1.Username Inner Join tblComputers On tblComputers.Computername = tblCPlogoninfo.Computername Order By Query1.Domain, Query1.Username
‎01-08-2013 05:01 PM
‎01-09-2013 02:00 PM
danman wrote:
If there was some way to feed a text or cvs file in to get a report like this that'd be great though.
‎01-08-2013 01:52 PM
‎01-08-2013 12:09 PM
‎01-08-2013 09:59 AM
Select Top 1000000 Query1.Username, Query1.Domain As UserDomain, Query1.Firstname, Query1.Lastname, Query1.Name, Query1.Displayname, Query1.LastLogon, tblComputers.Computer, tblComputers.Domain As ComputerDomain From (Select tblCPlogoninfo.Username, tblCPlogoninfo.Domain, tblADusers.Firstname, tblADusers.Lastname, tblADusers.Name, tblADusers.Displayname, Max(tblCPlogoninfo.logontime) As LastLogon From tblCPlogoninfo Left Join tblADusers On tblADusers.Username = tblCPlogoninfo.Username And tblADusers.Userdomain = tblCPlogoninfo.Domain Group By tblCPlogoninfo.Username, tblCPlogoninfo.Domain, tblADusers.Firstname, tblADusers.Lastname, tblADusers.Name, tblADusers.Displayname) Query1 Inner Join tblCPlogoninfo On tblCPlogoninfo.logontime = Query1.LastLogon And tblCPlogoninfo.Domain = Query1.Domain And tblCPlogoninfo.Username = Query1.Username Inner Join tblComputers On tblComputers.Computername = tblCPlogoninfo.Computername Order By Query1.Domain, Query1.Username
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now