Thursday, 31 July 2014

SCCM 2007 - Report - All Machines, Operatin System, Most Recent Boot Time, Last User

This SQL query will poll sccm and pull out a report which lists all machines and their OS, most recent boot time and last logged on user:

Select 
SD.Name0 'Machine Name',
Caption0 AS [Operating System],
SD.User_Name0 'Last Logged on User Name',
Convert(VarChar(10), OS.LastBootUpTime0, 101)  'Last Boot Date'
From v_R_System SD
Join v_Gs_Operating_System OS on SD.ResourceID = OS.ResourceID
Order By 'Machine Name'

No comments:

Post a Comment