Hello. I found a report to list mac addresses and added the portable battery and IPLocation at the request of managment to try and output all laptops asset name, domain, network card, mac addresses, ip, last changed, userID, IPlocation and got a good output. When i tried adding first and last name by editing and double clicking tblADusers and selecting First and Last names, i get tons of results, exceptions and errors. How can i add that to the report?
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetUnique,
tblAssets.Domain,
tblNetwork.Description As [Network Card],
tblNetwork.MACaddress,
tsysOS.Image As icon,
tblNetwork.IPAddress,
tblNetwork.Lastchanged,
tblAssets.Username,
tblPortableBattery.Win32_PortableBatteryid,
tsysIPLocations.IPLocation
From tblAssets
Inner Join tblNetwork On tblAssets.AssetID = tblNetwork.AssetID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Inner Join tblPortableBattery
On tblAssets.AssetID = tblPortableBattery.AssetID
Inner Join tsysIPLocations On tsysIPLocations.LocationID =
tblAssets.LocationID
Where tblNetwork.IPEnabled = 1 And tblAssetCustom.State = 1
Order By tblAssets.AssetName