I'm trying to build a report to show all Serial numbers of machines, machine name, Top console user and when the machine last connected to the domain.
I have the first 3 sorted and working but I don't know what variable i'm looking for when trying to add a last logon.
I did add the additional attribute for the active directory discovery management for last logon but when that runs it gives me some stupid number like 3213201930219312 instead of a date/time.
The query I'm using at the moment is:
Any ideas?
SQL
SELECTdbo.v_R_System_Valid.Netbios_Name0,dbo.v_GS_SYSTEM_CONSOLE_USAGE_MAXGROUP.TopConsoleUser0,dbo.v_GS_SYSTEM_ENCLOSURE.SerialNumber0,dbo.v_R_System.lastLogon0FROMdbo.v_R_SystemINNERJOINdbo.v_R_System_ValidONdbo.v_R_System.ResourceID=dbo.v_R_System_Valid.ResourceIDINNERJOINdbo.v_GS_SYSTEM_CONSOLE_USAGE_MAXGROUPONdbo....