04-04-2024 05:19 PM - last edited on 04-08-2024 09:17 AM by Mercedes_O
Solved! Go to Solution.
04-15-2024 09:55 PM
Hello,
I hope you are not banging your head on this. I assume you want a report that looks like this.
Below you will find the report. You can just copy and paste it as a new report.
I originally got this style of report from Lansweeper a few years back, and I just modify it to the software and versions I need.
When the newer versions come out, just update the version numbers as needed.
The current version as of 4/15/2024 is: 123.0.6312.123
Think of the version number as :
123 | 0 | 6312 | 123 |
4 | 3 | 2 | 1 |
There are two spots in the report to update the version similar to below. Notice how "3" is skipped.
When Cast(ParseName(tblSoftware.softwareVersion, 4) As int) > 123 Then
'Up to date'
When Cast(ParseName(tblSoftware.softwareVersion, 4) As int) = 123 And
Cast(ParseName(tblSoftware.softwareVersion, 2) As int) > 6312 Then
'Up to date'
When Cast(ParseName(tblSoftware.softwareVersion, 4) As int) = 123 And
Cast(ParseName(tblSoftware.softwareVersion, 2) As int) = 6312 And
Cast(ParseName(tblSoftware.softwareVersion, 1) As int) >= 123 Then
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tsysAssetTypes.AssetTypename As AssetType,
tblAssets.Username,
tblAssets.Userdomain,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
tblSoftwareUni.softwareName As Software,
tblSoftware.softwareVersion As Version,
tblSoftwareUni.SoftwarePublisher As Publisher,
Case
When Cast(ParseName(tblSoftware.softwareVersion, 4) As int) > 123 Then
'Up to date'
When Cast(ParseName(tblSoftware.softwareVersion, 4) As int) = 123 And
Cast(ParseName(tblSoftware.softwareVersion, 2) As int) > 6312 Then
'Up to date'
When Cast(ParseName(tblSoftware.softwareVersion, 4) As int) = 123 And
Cast(ParseName(tblSoftware.softwareVersion, 2) As int) = 6312 And
Cast(ParseName(tblSoftware.softwareVersion, 1) As int) >= 123 Then
'Up to date'
Else 'Out of date'
End As [Patch Status],
tsysIPLocations.IPLocation,
tblAssetCustom.Manufacturer,
tblAssetCustom.Model,
tsysOS.OSname As OS,
tblAssets.SP,
tblAssets.Lastseen,
tblAssets.Lasttried,
tblSoftware.Lastchanged,
Case
When Cast(ParseName(tblSoftware.softwareVersion, 4) As int) > 123 Then
'#d4f4be'
When Cast(ParseName(tblSoftware.softwareVersion, 4) As int) = 123 And
Cast(ParseName(tblSoftware.softwareVersion, 2) As int) > 6312 Then
'#d4f4be'
When Cast(ParseName(tblSoftware.softwareVersion, 4) As int) = 123 And
Cast(ParseName(tblSoftware.softwareVersion, 2) As int) = 6312 And
Cast(ParseName(tblSoftware.softwareVersion, 1) As int) >= 123 Then
'#d4f4be'
Else '#ffadad'
End As backgroundcolor
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tsysIPLocations On tsysIPLocations.LocationID =
tblAssets.LocationID
Inner Join tblState On tblState.State = tblAssetCustom.State
Inner Join tblSoftware On tblAssets.AssetID = tblSoftware.AssetID
Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID
Left Join tsysOS On tsysOS.OScode = tblAssets.OScode
Where tblSoftwareUni.softwareName Like '%Google Chrome%' And
tblSoftwareUni.SoftwarePublisher Like '%Google%' And tblState.Statename =
'Active'
To use this for other program reports; replace the software name between the percent symbols, and replace the publisher between the percent symbols.
04-15-2024 09:55 PM
Hello,
I hope you are not banging your head on this. I assume you want a report that looks like this.
Below you will find the report. You can just copy and paste it as a new report.
I originally got this style of report from Lansweeper a few years back, and I just modify it to the software and versions I need.
When the newer versions come out, just update the version numbers as needed.
The current version as of 4/15/2024 is: 123.0.6312.123
Think of the version number as :
123 | 0 | 6312 | 123 |
4 | 3 | 2 | 1 |
There are two spots in the report to update the version similar to below. Notice how "3" is skipped.
When Cast(ParseName(tblSoftware.softwareVersion, 4) As int) > 123 Then
'Up to date'
When Cast(ParseName(tblSoftware.softwareVersion, 4) As int) = 123 And
Cast(ParseName(tblSoftware.softwareVersion, 2) As int) > 6312 Then
'Up to date'
When Cast(ParseName(tblSoftware.softwareVersion, 4) As int) = 123 And
Cast(ParseName(tblSoftware.softwareVersion, 2) As int) = 6312 And
Cast(ParseName(tblSoftware.softwareVersion, 1) As int) >= 123 Then
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tsysAssetTypes.AssetTypename As AssetType,
tblAssets.Username,
tblAssets.Userdomain,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
tblSoftwareUni.softwareName As Software,
tblSoftware.softwareVersion As Version,
tblSoftwareUni.SoftwarePublisher As Publisher,
Case
When Cast(ParseName(tblSoftware.softwareVersion, 4) As int) > 123 Then
'Up to date'
When Cast(ParseName(tblSoftware.softwareVersion, 4) As int) = 123 And
Cast(ParseName(tblSoftware.softwareVersion, 2) As int) > 6312 Then
'Up to date'
When Cast(ParseName(tblSoftware.softwareVersion, 4) As int) = 123 And
Cast(ParseName(tblSoftware.softwareVersion, 2) As int) = 6312 And
Cast(ParseName(tblSoftware.softwareVersion, 1) As int) >= 123 Then
'Up to date'
Else 'Out of date'
End As [Patch Status],
tsysIPLocations.IPLocation,
tblAssetCustom.Manufacturer,
tblAssetCustom.Model,
tsysOS.OSname As OS,
tblAssets.SP,
tblAssets.Lastseen,
tblAssets.Lasttried,
tblSoftware.Lastchanged,
Case
When Cast(ParseName(tblSoftware.softwareVersion, 4) As int) > 123 Then
'#d4f4be'
When Cast(ParseName(tblSoftware.softwareVersion, 4) As int) = 123 And
Cast(ParseName(tblSoftware.softwareVersion, 2) As int) > 6312 Then
'#d4f4be'
When Cast(ParseName(tblSoftware.softwareVersion, 4) As int) = 123 And
Cast(ParseName(tblSoftware.softwareVersion, 2) As int) = 6312 And
Cast(ParseName(tblSoftware.softwareVersion, 1) As int) >= 123 Then
'#d4f4be'
Else '#ffadad'
End As backgroundcolor
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tsysIPLocations On tsysIPLocations.LocationID =
tblAssets.LocationID
Inner Join tblState On tblState.State = tblAssetCustom.State
Inner Join tblSoftware On tblAssets.AssetID = tblSoftware.AssetID
Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID
Left Join tsysOS On tsysOS.OScode = tblAssets.OScode
Where tblSoftwareUni.softwareName Like '%Google Chrome%' And
tblSoftwareUni.SoftwarePublisher Like '%Google%' And tblState.Statename =
'Active'
To use this for other program reports; replace the software name between the percent symbols, and replace the publisher between the percent symbols.
04-16-2024 01:32 PM
I am looking for a report that only returns out of date versions and does not show up-to-date ones at all, and that automatically detects the latest version of the specified software.
04-16-2024 07:14 PM
Simple enough,
Save the report above.
After saving it, use the "Save as" button, and save it as the same report with "- Out of date"
After you save your out of date report, go to edit the report.
Find the line that shows Patch Status, and set it to out of date
click outside of the box, it will automatically set it to = 'out of date'
Save and run your report.
04-16-2024 07:18 PM
Will this method automatically detect the current version? We need an automated solution that we don't have to update.
04-16-2024 07:22 PM
You will have to occasionally update the version numbers.
It will automatically show out of date if the version number is below the set values.
If you need more advanced reporting, I'd get with a DBA to write some code for you.
04-16-2024 11:06 AM
Hello there!
Thanks for the assistance!
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now