→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !
‎09-03-2021 12:05 AM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetUnique,
tblAssets.Domain,
tsysOS.OSname,
tblAssets.Description,
tsysOS.Image As icon
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Where (tblAssets.AssetID Not In (Select tblUsers.AssetID From tblUsers
Where tblUsers.Name = 'LOCALADMIN') And tsysOS.OSname = 'Win 2019') Or
(tsysOS.OSname = 'Win 2016') Or
(tsysOS.OSname = 'Win 2012 R2') Or
(tsysOS.OSname = 'Win 2012') Or
(tsysOS.OSname = 'Win 2008 R2') Or
(tsysOS.OSname = 'Win 2008' And tblAssetCustom.State = 1)
Order By tblAssets.AssetName
‎09-09-2021 03:03 PM
‎09-03-2021 03:28 PM
Where
(tblAssets.AssetID Not In (Select tblUsers.AssetID From tblUsers
Where tblUsers.Name = 'LOCALADMIN')
And tsysOS.OSname = 'Win 2019')
Or (tsysOS.OSname = 'Win 2016')
Or (tsysOS.OSname = 'Win 2012 R2')
Or (tsysOS.OSname = 'Win 2012')
Or (tsysOS.OSname = 'Win 2008 R2')
Or (tsysOS.OSname = 'Win 2008' And tblAssetCustom.State = 1)
Where
tblAssetCustom.State = 1
AND tblAssets.AssetID Not In (Select tblUsers.AssetID From tblUsers
Where tblUsers.Name = 'LOCALADMIN')
AND ( tsysOS.OSname = 'Win 2019'
OR tsysOS.OSname = 'Win 2016'
OR tsysOS.OSname = 'Win 2012 R2'
OR tsysOS.OSname = 'Win 2012'
OR tsysOS.OSname = 'Win 2008 R2'
OR tsysOS.OSname = 'Win 2008'
)
Where
tblAssetCustom.State = 1
AND tblAssets.AssetID Not In (Select tblUsers.AssetID From tblUsers
Where tblUsers.Name = 'LOCALADMIN')
AND tsysOS.OSname IN ('Win 2019', 'Win 2016', 'Win 2012 R2', 'Win 2012', 'Win 2008 R2', 'Win 2008')
‎09-03-2021 02:05 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetUnique,
tblAssets.Domain,
tsysOS.OSname,
tblAssets.Description,
tsysOS.Image As icon
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Where tblAssets.AssetID Not In (Select tblUsers.AssetID From tblUsers
Where tblUsers.Name = 'LOCALADMIN' And tblAssetCustom.State = 1)
And tsysOS.OSname Like '%20%'
Order By tblAssets.AssetName
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now