cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Srikanth08
Engaged Sweeper II
Hi,

I need query for the following report
Asset Name
UserName
IP Address
Display name
Last Seen
Regards, Srikanth08
3 REPLIES 3
Hemoco
Lansweeper Alumni
Can you please try the following:

Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Username,
tblAssets.IPAddress,
tblADusers.Displayname,
tblAssets.Lastseen
From tblAssets
Left Join tblADusers On tblAssets.Username = tblADusers.Username And
tblAssets.Userdomain = tblADusers.Userdomain
Srikanth08
Engaged Sweeper II
Hi,

Thanks for the report. But when i tried it i showing only 2875 assets, but my actual scanned assets are 3075. where is remaining one.i want full list
Regards, Srikanth08
Hemoco
Lansweeper Alumni
Please use the following report:
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Username,
tblAssets.IPAddress,
tblADusers.Displayname,
tblAssets.Lastseen
From tblAssets
Inner Join tblADusers On tblAssets.Username = tblADusers.Username And
tblAssets.Userdomain = tblADusers.Userdomain

To use the report above, do the following:
•Open the report builder under Reports/Create New Report.
•Paste the SQL code we provided at the bottom of the page.
•Left-click somewhere in the upper section of the page so the code applies.
•Give the report a Title and hit the Save & Run button to save it. Export options are listed on the left.

New to Lansweeper?

Try Lansweeper For Free

Experience Lansweeper with your own data.
Sign up now for a 14-day free trial.

Try Now