→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !

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
Notonyourradar
Engaged Sweeper III
I get the following:

"Invalid column name 'Version'. Invalid column name 'Version'. Invalid column name 'Version'. Invalid column name 'Version'. Invalid column name 'Version'. Invalid column name 'Version'. Invalid column name 'Version'. Invalid column name 'Version'"

Is this a version issue? I have not yet updated to the latest Lansweeper version.
Brendan440
Engaged Sweeper II
Same here, column name errors.

Running version v. 6.0.151.34
ChrisParr
Engaged Sweeper II
I get an error when trying to save the report:

Invalid column name 'Version'. Invalid column name 'Version'. Invalid column name 'Version'. Invalid column name 'Version'. Invalid column name 'Version'. Invalid column name 'Version'. Invalid column name 'Version'. Invalid column name 'Version'.
Gerardo
Engaged Sweeper II
Error while saving report: "Invalid column name 'Version'.\r\nInvalid column name 'Version'.\r\nInvalid column name 'Version'.\r\nInvalid column name 'Version'.\r\nInvalid column name 'Version'.\r\nInvalid column name 'Version'.\r\nInvalid column name 'Version'.\r\nInvalid column name 'Version'."
stever
Engaged Sweeper II
I'm running the latest version of Lansweeper (7.0.30.66) and the report runs fine on mine.
doone128
Engaged Sweeper III
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!
desmphil
Engaged Sweeper
I like your approach but the report has to be modified every months, what i did for years with Lansweeper is create SQL table with a powershell script that fetch all microsoft patch each month (KB, NAME, DATE, OS etc) and compare with the current installs in LS, then i use PowerBI to validate the missing patches.

A similar approach would be really usefull directly in Lansweeper, where LS would fetch MS patchs KB and compare.. its a bit of a maintenance but a life saver.

Have fun!.
Esben_D
Lansweeper Employee
Lansweeper Employee
Gerardo wrote:
Error while saving report: "Invalid column name 'Version'.\r\nInvalid column name 'Version'.\r\nInvalid column name 'Version'.\r\nInvalid column name 'Version'.\r\nInvalid column name 'Version'.\r\nInvalid column name 'Version'.\r\nInvalid column name 'Version'.\r\nInvalid column name 'Version'."

For anyone trying to run this report, since scanning Windows 10 version numbers was added in Lansweeper 6.0.230. This report will only work when you have Lansweeper 6.0.230 or higher

Updated the report so it works on older version too now.
daveb
Engaged Sweeper II
Charles.X wrote:
Gerardo wrote:
Error while saving report: "Invalid column name 'Version'.\r\nInvalid column name 'Version'.\r\nInvalid column name 'Version'.\r\nInvalid column name 'Version'.\r\nInvalid column name 'Version'.\r\nInvalid column name 'Version'.\r\nInvalid column name 'Version'.\r\nInvalid column name 'Version'."

For anyone trying to run this report, since scanning Windows 10 version numbers was added in Lansweeper 6.0.230. This report will only work when you have Lansweeper 6.0.230 or higher


can confirm it is working properly on our instance running version 6.0.230.48
Brendan440
Engaged Sweeper II
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
Esben_D
Lansweeper Employee
Lansweeper Employee
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!


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

desmphil wrote:
I like your approach but the report has to be modified every months, what i did for years with Lansweeper is create SQL table with a powershell script that fetch all microsoft patch each month (KB, NAME, DATE, OS etc) and compare with the current installs in LS, then i use PowerBI to validate the missing patches.

A similar approach would be really usefull directly in Lansweeper, where LS would fetch MS patchs KB and compare.. its a bit of a maintenance but a life saver.

Have fun!.


This sounds very interesting and would indeed be much easier. But as you mentioned it would include a lot of modifications on the user's side. The goal here is to try and offer it to as many people as possible and keep the barrier to entry low.

Esben_D
Lansweeper Employee
Lansweeper Employee
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.
jmje
Engaged Sweeper III
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...
Brendan440
Engaged Sweeper II
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 🙂
GlorifiedNewbx8
Engaged Sweeper
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?

New to Lansweeper?

Try Lansweeper For Free

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

Try Now