I would like the added luxury to include the Last User's First and last name to each of the reports I make.
I am trying to add it to this report for mapped drives.
=========================================================
Select Top 1000000 tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Username,
tblAssets.IPAddress,
tblMappedDrives.Driveletter,
tblMappedDrives.RemotePath
From tblAssets
Inner Join tblMappedDrives On tblAssets.AssetID = tblMappedDrives.AssetID
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Order By tblAssets.AssetName,
tblMappedDrives.Driveletter
=========================================================
Yes, I have the username but I cannot figure out how to get the Last User to work.
I have tried,
htblusers.name,
web50repuseraduserattributes.Firstname,
web50repuseraduserattributes.Lastname