cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Esben_D
Lansweeper Employee
Lansweeper Employee
Hi Everyone,

Starting from this month, I'll be publishing a new report every month which checks if assets in your network are on the latest Windows monthly rollup update. If you want more information about what is included in this update, feel free to visit the related blog post.

This report will check if your assets are on the latest released monthly rollup KB update. It's color-coded to give you an easy and quick overview which assets are already on the latest Windows update.

Instructions to add this report to your Lansweeper installation can be found here: https://www.lansweeper.com/forum/yaf_postst9882_How-to-run-a-report.aspx

V2 changelog:
  • Changed the report to use Windows build number instead of version to support Lansweeper versions before 6.0.230.
  • Added a Patch status column.
  • Excluded Windows XP and Windows 7 (without service pack 1) from the report.
Select Top 1000000 Coalesce(tsysOS.Image, tsysAssetTypes.AssetTypeIcon10) As
icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblState.Statename As State,
tblAssets.Username,
tblAssets.Userdomain,
tblAssets.IPAddress,
tsysIPLocations.IPLocation,
tblAssetCustom.Manufacturer,
tblAssetCustom.Model,
tsysOS.OSname As OS,
tblAssets.SP,
Case
When tsysOS.OScode Like '10.0.10240%' Then '1507'
When tsysOS.OScode Like '10.0.10525%' Then '1511'
When tsysOS.OScode Like '10.0.14393%' Then '1607'
When tsysOS.OScode Like '10.0.15063%' Then '1703'
When tsysOS.OScode Like '10.0.16299%' Then '1709'
When tsysOS.OScode Like '10.0.17134%' Then '1803'
When tsysOS.OScode Like '10.0.17763%' Then '1809'
End As Version,
tblAssets.Lastseen,
tblAssets.Lasttried,
Case tblAssets.AssetID
When SubQuery1.AssetID Then 'Patched'
Else 'Not Patched'
End As [Patch status],
Case
When tblErrors.ErrorText Is Not Null Or
tblErrors.ErrorText != '' Then
'Scanning Error: ' + tsysasseterrortypes.ErrorMsg
Else ''
End As ScanningErrors,
Case
When tsysOS.OSname = 'Win 2008' Then 'KB4463097'
When tsysOS.OSname = 'Win 7' Or tsysOS.OSname = 'Win 7 RC' Or
tsysOS.OSname = 'Win 2008 R2' Then 'KB4462923'
When tsysOS.OSname = 'Win 2012' Or tsysOS.OSname = 'Win 8' Then 'KB4462929'
When tsysOS.OSname = 'Win 8.1' Or
tsysOS.OSname = 'Win 2012 R2' Then 'KB4462926'
When tsysOS.OScode Like '10.0.10240' Then 'KB4462922'
When tsysOS.OScode Like '10.0.10525' Then 'KB4093109'
When tsysOS.OScode Like '10.0.14393' Or
tsysOS.OSname = 'Win 2016' Then 'KB4462917'
When tsysOS.OScode Like '10.0.15063' Then 'KB4462937'
When tsysOS.OScode Like '10.0.16299' Then 'KB4462918'
When tsysOS.OScode Like '10.0.17134' Then 'KB4462919'
When tsysOS.OScode Like '10.0.17763' Then 'KB4464330'
End As [Install one of these updates],
Convert(nvarchar,DateDiff(day, QuickFixLastScanned.QuickFixLastScanned,
GetDate())) + ' days ago' As WindowsUpdateInfoLastScanned,
Case
When Convert(nvarchar,DateDiff(day, QuickFixLastScanned.QuickFixLastScanned,
GetDate())) > 3 Then
'Windows update information may not be up to date. We recommend rescanning this machine.'
Else ''
End As Comment,
Case tblAssets.AssetID
When SubQuery1.AssetID Then '#d4f4be'
Else '#ffadad'
End As backgroundcolor
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Left Join tsysOS On tsysOS.OScode = tblAssets.OScode
Left Join (Select Top 1000000 tblQuickFixEngineering.AssetID
From tblQuickFixEngineering
Inner Join tblQuickFixEngineeringUni On tblQuickFixEngineeringUni.QFEID
= tblQuickFixEngineering.QFEID
Where tblQuickFixEngineeringUni.HotFixID In ('KB4463097', 'KB4462923',
'KB4462929', 'KB4462926', 'KB4462922', 'KB4093109', 'KB4462917',
'KB4462937', 'KB4462918', 'KB4462919', 'KB4464330')) As SubQuery1 On
tblAssets.AssetID = SubQuery1.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblOperatingsystem On tblOperatingsystem.AssetID =
tblAssets.AssetID
Left Join tsysIPLocations On tblAssets.IPNumeric >= tsysIPLocations.StartIP
And tblAssets.IPNumeric <= tsysIPLocations.EndIP
Inner Join tblState On tblState.State = tblAssetCustom.State
Left Join (Select Distinct Top 1000000 tblAssets.AssetID As ID,
TsysLastscan.Lasttime As QuickFixLastScanned
From TsysWaittime
Inner Join TsysLastscan On TsysWaittime.CFGCode = TsysLastscan.CFGcode
Inner Join tblAssets On tblAssets.AssetID = TsysLastscan.AssetID
Where TsysWaittime.CFGname = 'QUICKFIX') As QuickFixLastScanned On
tblAssets.AssetID = QuickFixLastScanned.ID
Left Join (Select Distinct Top 1000000 tblAssets.AssetID As ID,
Max(tblErrors.Teller) As ErrorID
From tblErrors
Inner Join tblAssets On tblAssets.AssetID = tblErrors.AssetID
Group By tblAssets.AssetID) As ScanningError On tblAssets.AssetID =
ScanningError.ID
Left Join tblErrors On ScanningError.ErrorID = tblErrors.Teller
Left Join tsysasseterrortypes On tsysasseterrortypes.Errortype =
tblErrors.ErrorType
Where tblAssets.AssetID Not In (Select Top 1000000 tblAssets.AssetID
From tblAssets Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Where tsysOS.OSname Like 'Win 7%' And tblAssets.SP = 0) And
tsysOS.OSname != 'Win 2000 S' And tsysOS.OSname Not Like '%XP%' And
tsysAssetTypes.AssetTypename Like 'Windows%'
Order By tblAssets.Domain,
tblAssets.AssetName
29 Comments
Bruce_Garoutte
Engaged Sweeper II
Excellent work! Thank you!

Brendan440
Engaged Sweeper II
GlorifiedNewbx86 wrote:
Brendan440 wrote:
jmje wrote:
Charles.X wrote:
Brendan440 wrote:
Is there a link to the latest 6.0.230 version? Autoupdate shows me I am running the latest version already at v. 6.0.151.34 and the beta link is now at 7.0.100.5


Only the latest release and beta versions are available for download.


So... this thread shows a report that us common types can't run, because we can't download the required version to play?

I'm in the same boat, where I only see 6.0.151.34 as the latest available version.
Charles, you tease you...


If you dig into the links they use, you can find a link to the 6.0.230.48 download 🙂


as much as i love digging, any chance we could get you to post those links?



With Charles.X's replay about not making the links available, I am hesitant to post them here in public.
dlwhite
Engaged Sweeper
I am getting Invalid SELECT statement. Unexpected token "tblErrors" at line 19, pos 10. I am using the latest version of Lansweeper (v. 7.0.30.66).

I am supposed to do new report and delete all the stuff it puts in by default and then paste this in, is that not correct?

Thanks
doone128
Engaged Sweeper III
Charles.X wrote:


Thank you for the feedback. I'll take it into consideration for next month.



Great, thanks! Maybe one more thing....

Add a column to show if it's server architecture or not. That way we could easily filter servers without the need for a separate report.
dshu
Engaged Sweeper III
doone128 wrote:
This works fine for me. However, I have a couple of requests please!

1. Could you add into the report an exclusion for the Windows OS's that are no longer receiving updates?, ie 2003, XP etc. It would be nice if this were included as, unfortunately, some of us still have some of this legacy stuff around and it would be a pain to edit the report every month.

2. Could the colour coding also relate to a column that shows Patched/Not Patched or Up to date/Out of date or something similar? This would make it super easy to filter and find out how many devices left need patching.

Good work on this! This will help us out TONS!



Thanks, this is a really useful report and a nice touch from the team. Would also love to see suggestion 2 above included in the next version.
jdmhw6
Engaged Sweeper II
I like the report. Though I'm not sure I'm seeing accurate results. I manually performed windows updates against the Microsoft cloud on 2 windows 7 enterprise pc's. Both have been fully patched. The report however says they're missing KB4462923. Anyone else seeing this?
heybobby1
Engaged Sweeper III
Charles.X wrote:
Only the latest release and beta versions are available for download.


How come the latest version for download is '6.0.151.34', released on 21-Jun-2018? A mistake surely?
Brendan440
Engaged Sweeper II
Well it seems like the link to their current version is this.

https://cdn.lansweeper.com/download/7.0.100.5/LansweeperSetup.exe


So I wonder what the download link for version 6.0.230.48 could be ...
Esben_D
Lansweeper Employee
Lansweeper Employee
jmje wrote:
Charles.X wrote:
Brendan440 wrote:
Is there a link to the latest 6.0.230 version? Autoupdate shows me I am running the latest version already at v. 6.0.151.34 and the beta link is now at 7.0.100.5


Only the latest release and beta versions are available for download.


So... this thread shows a report that us common types can't run, because we can't download the required version to play?

I'm in the same boat, where I only see 6.0.151.34 as the latest available version.
Charles, you tease you...


I've updated the report so also earlier versions can run the report now.

dlwhite wrote:
I am getting Invalid SELECT statement. Unexpected token "tblErrors" at line 19, pos 10. I am using the latest version of Lansweeper (v. 7.0.30.66).

I am supposed to do new report and delete all the stuff it puts in by default and then paste this in, is that not correct?

Thanks


If you create a new report, also remove the default query it starts with, then just paste in the report above.

jdmhw6 wrote:
I like the report. Though I'm not sure I'm seeing accurate results. I manually performed windows updates against the Microsoft cloud on 2 windows 7 enterprise pc's. Both have been fully patched. The report however says they're missing KB4462923. Anyone else seeing this?


If it doesn't seem to be accurate, you can do a full rescan all the assets in the report. If after a manual rescan there is still no information, it's likely that the WMI has not updated.
Esben_D
Lansweeper Employee
Lansweeper Employee
I've updated the original post with a new report which includes some of the suggestions and a workaround for people using older Lansweeper versions. Everyone should be able to run the report now.
heybobby1
Engaged Sweeper III
Charles.X wrote:
I've updated the report so also earlier versions can run the report now.


So is there a problem with version '6.0.230.49' then? I'm still no clearer as to why this has been the latest v6 update for sometime but now it's been changed to an update from June 2018?

Esben_D
Lansweeper Employee
Lansweeper Employee
heybobby1 wrote:
Charles.X wrote:
I've updated the report so also earlier versions can run the report now.


So is there a problem with version '6.0.230.49' then? I'm still no clearer as to why this has been the latest v6 update for sometime but now it's been changed to an update from June 2018?



To my knowledge there are no big issues with 6.0.230.49. However, because it was released so close to Lansweeper 7, the update check wasn't changed to it to prevent asking people from having to update twice in such a short amount of time.
heybobby1
Engaged Sweeper III
Charles.X wrote:
To my knowledge there are no big issues with 6.0.230.49. However, because it was released so close to Lansweeper 7, the update check wasn't changed to it to prevent asking people from having to update twice in such a short amount of time.


OK, thanks Charles. We've been on version 6.0.230.48 since August 2018 so that's why I was confused. However, when I update I usually go straight to the Lansweeper download site. Where as if you do that now you can only download Lansweeper 7. Just out of interest, will v6 be discontinued?

Esben_D
Lansweeper Employee
Lansweeper Employee
heybobby1 wrote:
OK, thanks Charles. We've been on version 6.0.230.48 since August 2018 so that's why I was confused. However, when I update I usually go straight to the Lansweeper download site. Where as if you do that now you can only download Lansweeper 7. Just out of interest, will v6 be discontinued?


Officially, our support team will support the version the update check has and higher. They will always try and help anyone with a Lansweeper license, but some issues can be version specific and will require an update before further troubleshooting can be done.

Since your in full control over what version you use, it's not up to us to decide what version you can use.

New to Lansweeper?

Try Lansweeper For Free

Experience Lansweeper with your own data.
Sign up now for a 14-day free trial.

Try Now