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 Physical Disk Size
by  RC62N   Go to last post Go to first unread
Last post: Yesterday at 5:18:38 PM(UTC)
Lansweeper AD User report
by  GMcCartney  
Go to last post Go to first unread
Last post: Yesterday at 12:07:22 PM(UTC)
Lansweeper PC Build Report Missing Software
by  Andy.S   Go to last post Go to first unread
Last post: Yesterday at 10:28:40 AM(UTC)
Lansweeper Creat report ALL office (ms officce,libreoffice,openoffice)
by  RC62N  
Go to last post Go to first unread
Last post: 11/15/2019 9:58:33 PM(UTC)
Lansweeper How to Report on Dynamic Asset Groups
by  Rob-CD   Go to last post Go to first unread
Last post: 11/15/2019 11:49:22 AM(UTC)
Lansweeper Custom All Assets Report Help
by  Matt Fuhrman  
Go to last post Go to first unread
Last post: 11/14/2019 3:55:25 PM(UTC)
Report Center Calculate your network's computing power
by  GBInnovation   Go to last post Go to first unread
Last post: 11/13/2019 12:11:18 PM(UTC)
Lansweeper Patch Tuesday report, last 3 months
by  JacobH  
Go to last post Go to first unread
Last post: 11/12/2019 5:28:37 PM(UTC)