Notification

Icon
Error

Report that shows "RebootRequired" for Servers - Equivalent of the one for W10 clients

Posted: Wednesday, October 6, 2021 1:32:26 PM(UTC)
BusyAdmin

BusyAdmin

Member Original PosterPosts: 4
0
Like
I am looking for a way to show a column that states whether or not a reboot is still pending after the install of an update.

For clients I managed it with the regkey query mentioned here.
However when I run the same exercise for servers (using their respective regkeys) it shows no results.

This is the current report (without the reboot column):
Code:
Select Top 1000000 tblAssets.AssetID,
  tblAssets.AssetName,
  tsysOS.OSname,
  tblAssets.Username,
  tsysOS.Image As icon,
  tblAssets.Domain,
  tblAssets.IPAddress,
  tblAssets.Description,
  Max(Convert(date,tblQuickFixEngineering.InstalledOn)) As lastPatchDate,
  tblAssets.Lastseen,
  Case
    When Max(Convert(date,tblQuickFixEngineering.InstalledOn)) >= DateAdd(day,
      -7, GetDate()) Then '#d4f4be'
    When Max(Convert(date,tblQuickFixEngineering.InstalledOn)) < DateAdd(day,
      -7, GetDate()) And Max(Convert(date,tblQuickFixEngineering.InstalledOn))
      >= DateAdd(day, -30, GetDate()) Then '#f7f0ca'
    When Max(Convert(date,tblQuickFixEngineering.InstalledOn)) < DateAdd(day,
      -31, GetDate()) And Max(Convert(date,tblQuickFixEngineering.InstalledOn))
      >= DateAdd(day, -90, GetDate()) Then '#f2d59f'
    Else '#f7caca'
  End As backgroundcolor,
  tblAssets.Lasttried,
  tblDomainroles.Domainrolename,
  Convert(nvarchar(10),Ceiling(Floor(Convert(integer,tblAssets.Uptime) / 3600 /
  24))) + ' days ' +
  Convert(nvarchar(10),Ceiling(Floor(Convert(integer,tblAssets.Uptime) / 3600 %
  24))) + ' hours ' +
  Convert(nvarchar(10),Ceiling(Floor(Convert(integer,tblAssets.Uptime) % 3600 /
  60))) + ' minutes' As Uptime
From tblQuickFixEngineering
  Join tblAssets On tblAssets.AssetID = tblQuickFixEngineering.AssetID
  Join tsysOS On tblAssets.OScode = tsysOS.OScode
  Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
  Inner Join lansweeperdb.dbo.tblComputersystem On tblAssets.AssetID =
      tblComputersystem.AssetID
  Inner Join lansweeperdb.dbo.tblDomainroles On tblDomainroles.Domainrole =
      tblComputersystem.Domainrole
Where tblDomainroles.Domainrolename In ('Stand-alone server', 'Member server',
  'Backup domain controller', 'Primary domain controller') And
  tblAssetCustom.State = 1
Group By tblAssets.AssetID,
  tblAssets.AssetName,
  tsysOS.OSname,
  tblAssets.Username,
  tsysOS.Image,
  tblAssets.Domain,
  tblAssets.IPAddress,
  tblAssets.Description,
  tblAssets.Lastseen,
  tblAssets.Lasttried,
  tblDomainroles.Domainrolename,
  tblAssets.Uptime
Order By lastPatchDate
Alulux
#1Alulux Member Posts: 42  
posted: 10/13/2021 2:00:49 PM(UTC)
I have the same Problem.

I tried to scan this Registry path:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired

But then I read Lansweeper is unable to scan an entire Registry path or an empty value.


Do you had any luck yet?

Active Discussions

Lansweeper Linux Agent - login user
by  Dinusha Chandrasinghe   Go to last post Go to first unread
Last post: Today at 11:03:07 AM(UTC)
Lansweeper device with multiple NICs
by  mzipperer  
Go to last post Go to first unread
Last post: Yesterday at 7:42:57 PM(UTC)
Lansweeper Internal Note
by  mdavis2503   Go to last post Go to first unread
Last post: Yesterday at 6:00:07 PM(UTC)
Lansweeper Problem with deploy software
by  Max90  
Go to last post Go to first unread
Last post: Yesterday at 12:09:40 PM(UTC)
Lansweeper Can lsagent be protected from deletion
by  RKCar   Go to last post Go to first unread
Last post: 11/29/2021 8:56:09 PM(UTC)
Lansweeper HTTPS not secure
by  Larry Rhea  
Go to last post Go to first unread
Last post: 11/29/2021 7:50:59 PM(UTC)
Lansweeper Warning about Built-in Admin
by  Larry Rhea   Go to last post Go to first unread
Last post: 11/29/2021 7:45:45 PM(UTC)