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

Lansweeper Uptime incorrect
by  CyberCitizen   Go to last post Go to first unread
Last post: Today at 1:29:08 AM(UTC)
Lansweeper Lansweeper Not Saving New Asset
by  Terry1337   Go to last post Go to first unread
Last post: 7/19/2019 3:52:51 PM(UTC)
Lansweeper Email configuration
by  Ian.Prentice  
Go to last post Go to first unread
Last post: 7/19/2019 3:14:04 PM(UTC)
Lansweeper InTune Scanning not showing all devices
by  TBRIT   Go to last post Go to first unread
Last post: 7/19/2019 3:12:03 PM(UTC)
Lansweeper Unique Custom Fields
by  Hendrik.VE  
Go to last post Go to first unread
Last post: 7/19/2019 11:52:35 AM(UTC)
Lansweeper Lansweeper Remote Screenshot Folder
by  Esben.D   Go to last post Go to first unread
Last post: 7/19/2019 10:24:31 AM(UTC)
Lansweeper Lansweeper Enterprise optional?
by  Esben.D  
Go to last post Go to first unread
Last post: 7/19/2019 10:00:22 AM(UTC)