10-06-2012 12:56 AM
Solved! Go to Solution.
10-11-2012 05:01 PM
Select Top 1000000 Web40OSName.Compimage As icon, tblComputers.Computername, tblComputers.Computer, tblComputers.Domain, Web40OSName.OSname As OS, Web40OSName.SP, Web40OSName.OScode As Code, tblQuickFixEngineering.Description As [Last Fix], tblQuickFixEngineering.FixComments As [Last Fix Comment], tblQuickFixEngineering.HotFixID As [Last Fix ID], tblQuickFixEngineering.Lastchanged As [Last Fix Scanned] From tblComputers Inner Join Web40OSName On Web40OSName.Computername = tblComputers.Computername Inner Join (Select tblQuickFixEngineering.Computername, Max(tblQuickFixEngineering.Lastchanged) As [Last Update Scanned] From tblQuickFixEngineering Group By tblQuickFixEngineering.Computername) LastUpdates On LastUpdates.Computername = tblComputers.Computername Inner Join tblQuickFixEngineering On tblQuickFixEngineering.Computername = LastUpdates.Computername And tblQuickFixEngineering.Lastchanged = LastUpdates.[Last Update Scanned] Where tblComputers.Lastseen <> '' Order By tblQuickFixEngineering.Lastchanged
10-11-2012 05:01 PM
Select Top 1000000 Web40OSName.Compimage As icon, tblComputers.Computername, tblComputers.Computer, tblComputers.Domain, Web40OSName.OSname As OS, Web40OSName.SP, Web40OSName.OScode As Code, tblQuickFixEngineering.Description As [Last Fix], tblQuickFixEngineering.FixComments As [Last Fix Comment], tblQuickFixEngineering.HotFixID As [Last Fix ID], tblQuickFixEngineering.Lastchanged As [Last Fix Scanned] From tblComputers Inner Join Web40OSName On Web40OSName.Computername = tblComputers.Computername Inner Join (Select tblQuickFixEngineering.Computername, Max(tblQuickFixEngineering.Lastchanged) As [Last Update Scanned] From tblQuickFixEngineering Group By tblQuickFixEngineering.Computername) LastUpdates On LastUpdates.Computername = tblComputers.Computername Inner Join tblQuickFixEngineering On tblQuickFixEngineering.Computername = LastUpdates.Computername And tblQuickFixEngineering.Lastchanged = LastUpdates.[Last Update Scanned] Where tblComputers.Lastseen <> '' Order By tblQuickFixEngineering.Lastchanged
10-11-2012 06:47 PM
Lansweeper wrote:
The report should work. Could you try running the report below instead. It lists the last update that occurred on each machine and when that update was scanned. The report is sorted by scanned date, in ascending order, so the machines with the oldest updates will be listed first. This should at least tell you how long ago the oldest update occurred.Select Top 1000000 Web40OSName.Compimage As icon, tblComputers.Computername, tblComputers.Computer, tblComputers.Domain, Web40OSName.OSname As OS, Web40OSName.SP, Web40OSName.OScode As Code, tblQuickFixEngineering.Description As [Last Fix], tblQuickFixEngineering.FixComments As [Last Fix Comment], tblQuickFixEngineering.HotFixID As [Last Fix ID], tblQuickFixEngineering.Lastchanged As [Last Fix Scanned] From tblComputers Inner Join Web40OSName On Web40OSName.Computername = tblComputers.Computername Inner Join (Select tblQuickFixEngineering.Computername, Max(tblQuickFixEngineering.Lastchanged) As [Last Update Scanned] From tblQuickFixEngineering Group By tblQuickFixEngineering.Computername) LastUpdates On LastUpdates.Computername = tblComputers.Computername Inner Join tblQuickFixEngineering On tblQuickFixEngineering.Computername = LastUpdates.Computername And tblQuickFixEngineering.Lastchanged = LastUpdates.[Last Update Scanned] Where tblComputers.Lastseen <> '' Order By tblQuickFixEngineering.Lastchanged
10-11-2012 06:55 PM
JSteele wrote:Lansweeper wrote:
The report should work. Could you try running the report below instead. It lists the last update that occurred on each machine and when that update was scanned. The report is sorted by scanned date, in ascending order, so the machines with the oldest updates will be listed first. This should at least tell you how long ago the oldest update occurred.Select Top 1000000 Web40OSName.Compimage As icon, tblComputers.Computername, tblComputers.Computer, tblComputers.Domain, Web40OSName.OSname As OS, Web40OSName.SP, Web40OSName.OScode As Code, tblQuickFixEngineering.Description As [Last Fix], tblQuickFixEngineering.FixComments As [Last Fix Comment], tblQuickFixEngineering.HotFixID As [Last Fix ID], tblQuickFixEngineering.Lastchanged As [Last Fix Scanned] From tblComputers Inner Join Web40OSName On Web40OSName.Computername = tblComputers.Computername Inner Join (Select tblQuickFixEngineering.Computername, Max(tblQuickFixEngineering.Lastchanged) As [Last Update Scanned] From tblQuickFixEngineering Group By tblQuickFixEngineering.Computername) LastUpdates On LastUpdates.Computername = tblComputers.Computername Inner Join tblQuickFixEngineering On tblQuickFixEngineering.Computername = LastUpdates.Computername And tblQuickFixEngineering.Lastchanged = LastUpdates.[Last Update Scanned] Where tblComputers.Lastseen <> '' Order By tblQuickFixEngineering.Lastchanged
I just noticed something. The report is actually pulling the last time each system was "scanned" not the last time updates were installed.
Jon
10-11-2012 09:05 PM
JSteele wrote:
I would like the report to display the last time any update was installed on each machine, only listing each machine once with the date of the last update installed. If that's possible.
10-11-2012 06:45 PM
Lansweeper wrote:
The report should work. Could you try running the report below instead. It lists the last update that occurred on each machine and when that update was scanned. The report is sorted by scanned date, in ascending order, so the machines with the oldest updates will be listed first. This should at least tell you how long ago the oldest update occurred.Select Top 1000000 Web40OSName.Compimage As icon, tblComputers.Computername, tblComputers.Computer, tblComputers.Domain, Web40OSName.OSname As OS, Web40OSName.SP, Web40OSName.OScode As Code, tblQuickFixEngineering.Description As [Last Fix], tblQuickFixEngineering.FixComments As [Last Fix Comment], tblQuickFixEngineering.HotFixID As [Last Fix ID], tblQuickFixEngineering.Lastchanged As [Last Fix Scanned] From tblComputers Inner Join Web40OSName On Web40OSName.Computername = tblComputers.Computername Inner Join (Select tblQuickFixEngineering.Computername, Max(tblQuickFixEngineering.Lastchanged) As [Last Update Scanned] From tblQuickFixEngineering Group By tblQuickFixEngineering.Computername) LastUpdates On LastUpdates.Computername = tblComputers.Computername Inner Join tblQuickFixEngineering On tblQuickFixEngineering.Computername = LastUpdates.Computername And tblQuickFixEngineering.Lastchanged = LastUpdates.[Last Update Scanned] Where tblComputers.Lastseen <> '' Order By tblQuickFixEngineering.Lastchanged
10-10-2012 03:53 PM
Select Top 1000000 Web40OSName.Compimage As icon, tblComputers.Computername, tblComputers.Computer, tblComputers.Domain, Web40OSName.OSname As OS, Web40OSName.SP, Web40OSName.OScode As Code, TsysLastscan.Lasttime As [Last Scan For Updates] From tblComputers Inner Join Web40OSName On Web40OSName.Computername = tblComputers.Computername Inner Join TsysLastscan On tblComputers.Computername = TsysLastscan.Computername Inner Join TsysWaittime On TsysWaittime.CFGCode = TsysLastscan.CFGcode Where tblComputers.Computername Not In (Select tblQuickFixEngineering.Computername From tblQuickFixEngineering Where tblQuickFixEngineering.Lastchanged > GetDate() - 30) And TsysWaittime.CFGname = 'quickfix' And tblComputers.Lastseen <> '' Order By tblComputers.ComputerUnique
10-10-2012 08:10 PM
Lansweeper wrote:
Please use the report below for the information you are after. You may also be interested in running this registry scan, which verifies what your machines' Windows Update settings are.Select Top 1000000 Web40OSName.Compimage As icon, tblComputers.Computername, tblComputers.Computer, tblComputers.Domain, Web40OSName.OSname As OS, Web40OSName.SP, Web40OSName.OScode As Code, TsysLastscan.Lasttime As [Last Scan For Updates] From tblComputers Inner Join Web40OSName On Web40OSName.Computername = tblComputers.Computername Inner Join TsysLastscan On tblComputers.Computername = TsysLastscan.Computername Inner Join TsysWaittime On TsysWaittime.CFGCode = TsysLastscan.CFGcode Where tblComputers.Computername Not In (Select tblQuickFixEngineering.Computername From tblQuickFixEngineering Where tblQuickFixEngineering.Lastchanged > GetDate() - 30) And TsysWaittime.CFGname = 'quickfix' And tblComputers.Lastseen <> '' Order By tblComputers.ComputerUnique
To use the specified report, do the following:
• Open the Lansweeper configuration console and select Reports & Alerts\Report Builder. Hit the “New” button.
• Copy the SQL code provided and paste it at the bottom of the newly created report, replacing the default SQL code.
• Click somewhere near tblComputers so the new code applies.
• Give the report a “View name” and a “Report name” and hit the “Save” button.
• Double-click on the report in the report list to see its results and export options. The report will also be listed in the web console under All Available Reports.
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now