‎10-01-2020 10:28 PM
‎10-05-2020 05:27 PM
Select Top 1000000
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.Username,
tblAssets.Userdomain,
Coalesce(tsysOS.Image, tsysAssetTypes.AssetTypeIcon10) As icon,
tblAssets.IPAddress,
tblAssetCustom.Manufacturer,
tblAssetCustom.Model,
tsysOS.OSname As OS,
tblAssets.SP,
tblAssets.Lastseen,
tblAssets.Lasttried,
tblNetwork.DNSServerSearchOrder
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Left Join tsysOS On tblAssets.OScode = tsysOS.OScode
Inner Join tsysIPLocations On tsysIPLocations.LocationID = tblAssets.LocationID
Inner Join tblState On tblState.State = tblAssetCustom.State
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblNetwork On tblAssets.AssetID = tblNetwork.AssetID
Where
tblState.Statename = 'Active'
And tblNetwork.IPAddress <> '0.0.0.0'
And tblNetwork.IPAddress <> ''
And tblNetwork.IPEnabled = 'True'
And NOT (tblNetwork.DNSServerSearchOrder LIKE '%1.1.1.1%'
OR tblNetwork.DNSServerSearchOrder LIKE '%8.8.8.8%'
OR tblNetwork.DNSServerSearchOrder LIKE '%9.9.9.9%'
OR tblNetwork.DNSServerSearchOrder LIKE '%208.67.222.222%'
)
Order By
tblAssets.AssetName,
tblAssets.Domain
‎10-27-2020 02:29 AM
RC62N wrote:
Modifying "Network: No DNS server specified": List machines where the DNS search list doesn't contain one or more of Cloudflare, Google, Quad9, OpenDNS
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now