‎03-24-2022 12:59 AM
‎03-29-2022 03:10 PM
Select Top 1000000 tblassets.AssetID,
tblassets.AssetName,
tsysassettypes.AssetTypename,
tsysassettypes.AssetTypeIcon10 As icon,
tblassets.IPAddress,
tblassets.Lastseen,
tblassets.Lasttried,
Case
When Service.Name Is Null Then 'Not Found'
Else Service.Name
End As Service,
Service.StartMode,
Service.State,
Service.Caption,
Service.Startname
From tblassets
Inner Join tblassetcustom On tblassets.AssetID = tblassetcustom.AssetID
Inner Join tsysassettypes On tsysassettypes.AssetType = tblassets.Assettype
Left Join (Select tblServiceStartMode.StartMode,
tblServices.AssetID,
tblServicesUni.Caption,
tblServicesUni.Name,
tblServiceState.State,
tblServicesUni.Startname
From lansweeperdb.dbo.tblServiceStartMode
Inner Join lansweeperdb.dbo.tblServices On tblServiceStartMode.StartID =
tblServices.StartID
Inner Join lansweeperdb.dbo.tblServicesUni On
tblServicesUni.ServiceuniqueID = tblServices.ServiceuniqueID
Inner Join lansweeperdb.dbo.tblServiceState On tblServiceState.StateID =
tblServices.StateID
Where tblServicesUni.Caption = 'Microsoft Defender Antivirus Service')
Service On Service.AssetID = tblassets.AssetID
Where tsysassettypes.AssetTypename Like '%Win%' And tblassetcustom.State = 1
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now