
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2016 09:11 PM
So, does Lansweeper populate from the AD User scanning based on users found as it scans assets, or does it pull all Users from AD over into it's database? If so would you point me to the proper table to use?
So far I've both looked over tables and have run reports set to provide results based on users with AssetID fields that are like '' or is null but my reports don't return any results.
As an example, we've found a few user pages that don't list any assets- that is, no Last Computer is shown for them. We'd like to generate a list of these users for review.
Thanks!
Solved! Go to Solution.
- Labels:
-
Report Center
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-30-2016 07:02 PM
The report in your latest post won't be fully accurate, because tblADusers is incorrectly linked to tblAssets - it should be linked on the Userdomain field as well - and because tblAssets only stores the last logged on user of a computer. Your report lists users that are not the last logged on user of any computer. A user that is not the last logged on user of any computer can still have logon events listed on his user webpage, e.g. if he was the second to last user to log into a computer. To list AD users without logon events on their user webpages, you need to build a report based on tblCPlogoninfo instead. I've posted a report below.
Select Distinct Top 1000000 tblADusers.Username,
tblADusers.Userdomain,
tblADusers.OU
From tblADusers
Left Join tblCPlogoninfo On tblCPlogoninfo.Username = tblADusers.Username And
tblCPlogoninfo.Domain = tblADusers.Userdomain
Where (tblCPlogoninfo.AssetID Is Null) Or
(tblCPlogoninfo.AssetID = '')
Order By tblADusers.Userdomain,
tblADusers.Username

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2016 02:50 PM
We only work with the one domain, so we often don't include that column. I'll be sure to include it as needed going forward. Thanks again for your assistance!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2016 01:23 PM
Keep in mind as well that tblADusers must be linked to other tables on both the Username and Userdomain fields, as a username in itself is not unique. Your latest report will return incorrect results if you have multiple domains and the same username exists in more than one domain.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2016 09:20 PM
I plugged it into the report shown earlier in this thread, and found the names were not presented as clickable links (no alias set as instructed, see screenshots & test SQL query below). As a test I took the core basic New Report and added in the Displayname as shown below, and no doubt I'm doing or overlooking something simple, but still the name does not appear as a clickable link to that users page.
Simple default report with tblADUsers.Displayname added in as a test:
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblADusers.Displayname,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
tblAssets.Lastseen,
tblAssets.Lasttried
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblADusers On tblADusers.Username = tblAssets.Username
Where tblAssetCustom.State = 1

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-04-2016 02:47 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-01-2016 04:50 PM
In our case we're only monitoring a single domain (active domain scanning, and user group scanning is being used), so I've elected to not make that column visible. I've also added some extra detail for "at a glance" info like the Description field.
Question- is there a column available that will make a user name clickable to that user page, like AssetID is for asset pages? We're currently forcing a URL, but would love it to be in the name like with assets if that's possible!
Current code:
Select Distinct Top 1000000 tblADusers.Username,
'User Page for: ' + tblADusers.Username As hyperlink_name_hyp,
'http://<main web console URL>/user.aspx?username=' +
Cast(tblADusers.Username As nvarchar) + '&userdomain=XXXXXXX' As hyperlink_hyp,
tblADusers.Description,
tblADusers.whenCreated,
tblADusers.Lastchanged,
tblADusers.OU
From tblADusers
Left Join tblCPlogoninfo On tblCPlogoninfo.Username = tblADusers.Username And
tblCPlogoninfo.Domain = tblADusers.Userdomain
Where (tblCPlogoninfo.AssetID Is Null) Or
(tblCPlogoninfo.AssetID = '')
Order By tblADusers.Username
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-30-2016 07:02 PM
The report in your latest post won't be fully accurate, because tblADusers is incorrectly linked to tblAssets - it should be linked on the Userdomain field as well - and because tblAssets only stores the last logged on user of a computer. Your report lists users that are not the last logged on user of any computer. A user that is not the last logged on user of any computer can still have logon events listed on his user webpage, e.g. if he was the second to last user to log into a computer. To list AD users without logon events on their user webpages, you need to build a report based on tblCPlogoninfo instead. I've posted a report below.
Select Distinct Top 1000000 tblADusers.Username,
tblADusers.Userdomain,
tblADusers.OU
From tblADusers
Left Join tblCPlogoninfo On tblCPlogoninfo.Username = tblADusers.Username And
tblCPlogoninfo.Domain = tblADusers.Userdomain
Where (tblCPlogoninfo.AssetID Is Null) Or
(tblCPlogoninfo.AssetID = '')
Order By tblADusers.Userdomain,
tblADusers.Username

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2016 09:24 PM
Here's the core logic- I've, of course, added a ton of other details, but this is the really simple core that brings the data we wanted-
Select Top 1000000 tblADusers.Username,
tblAssets.AssetID,
tblAssets.AssetUnique,
tblADusers.OU
From tblAssets
Right Join tblADusers On tblADusers.Username = tblAssets.Username
Where (tblAssets.AssetID Like '') Or
(tblAssets.AssetID Is Null)
Order By tblADusers.Username,
tblADusers.OU
This effectively brings all the user names, then filters out those with an assetid associated. It appears to work perfectly for this particular goal, but I'd be happy for any improvements!
