Notification

Icon
Error

PO Box Query - Adding location to a user report

Posted: Tuesday, June 25, 2019 11:16:28 AM(UTC)
kmoc

kmoc

Member Original PosterPosts: 2
0
Like
Hi all, any help appreciated. Currently running the below report to pull info on users and their device. However it would be very useful to pull in the P.O. Box field from AD, as we have over 900 users in the building and we use this field to input their Floor and office number.

Select Top 1000000 tblADusers.Firstname,
tblADusers.Lastname,
tblADusers.Username,
tblAssets.AssetName,
tblAssets.IPAddress,
tblAssetCustom.Manufacturer,
tblAssetCustom.Model,
tblAssets.Firstseen,
tblAssets.Lastseen,
tblADusers.email
From tblAssets
Inner Join tsysAssetTypes On tblAssets.Assettype = tsysAssetTypes.AssetType
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Left Join tsysIPLocations On tblAssets.LocationID = tsysIPLocations.LocationID
Inner Join tblADusers On tblADusers.Username = tblAssets.Username
Where (tblAssetCustom.Model = 'ThinkPad Yoga 370') Or
(tblAssetCustom.Model = 'ThinkCentre M710q') Or
(tblAssetCustom.Model = 'ThinkPad X380 Yoga')
Order By tblADusers.Firstname,
tblAssets.AssetName

Just cant see where i can get this P.O Box info from.

Thanks in advance.
Kevin Think Brick wall

Active Discussions

Action Open Teams/SfB Chat with user
by  dshu   Go to last post Go to first unread
Last post: 6/25/2020 7:04:55 PM(UTC)
Action Find lost space the easy way (spacesniffer.exe)
by  krozar  
Go to last post Go to first unread
Last post: 5/5/2020 10:27:33 PM(UTC)
Lansweeper Querying a web server or web services
by  mmo   Go to last post Go to first unread
Last post: 5/5/2020 9:00:36 PM(UTC)
Action Password Status
by  brodiemac-too  
Go to last post Go to first unread
Last post: 4/23/2020 9:01:03 PM(UTC)
Action Email user
by  Michael Kop   Go to last post Go to first unread
Last post: 4/7/2020 11:24:12 AM(UTC)
Lansweeper actualizacion de datos importando csv
by  jhon freddy  
Go to last post Go to first unread
Last post: 3/31/2020 9:04:45 PM(UTC)
Lansweeper Asset Actions - RunAs Prompt
by  Socal_s197   Go to last post Go to first unread
Last post: 3/26/2020 10:02:16 PM(UTC)
Lansweeper Remote Registry 2019
by  CyberCitizen  
Go to last post Go to first unread
Last post: 3/6/2020 12:25:39 AM(UTC)