Quantcast
Viewing all articles
Browse latest Browse all 4871

SCCM - Custom Report Last seen

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....

Viewing all articles
Browse latest Browse all 4871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>