‎12-14-2017 10:00 PM
Select Top 1000000 tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.Username,
tsysOS.OSname,
tblOperatingsystem.Caption,
tsysIPLocations.IPLocation,
tblAssets.Lastseen,
tblADComputers.OU,
tblComputersystem.SystemType
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Inner Join tblADComputers On tblAssets.AssetID = tblADComputers.AssetID
Left Join tsysIPLocations On tblAssets.IPNumeric >= tsysIPLocations.StartIP
And tblAssets.IPNumeric <= tsysIPLocations.EndIP
Inner Join tblOperatingsystem
On tblAssets.AssetID = tblOperatingsystem.AssetID
Inner Join tblComputersystem On tblAssets.AssetID = tblComputersystem.AssetID
Where tblAssets.AssetID Not In (Select Top 1000000 tblSoftware.AssetID
From tblSoftware Inner Join tblSoftwareUni On tblSoftwareUni.SoftID =
tblSoftware.softID
Where (tblSoftwareUni.softwareName Like 'Microsoft Office 365%' And
tblSoftware.softwareVersion Like '16.%') Or
(tblSoftwareUni.softwareName Like 'Microsoft Office Professional 2016%') Or
(tblSoftwareUni.softwareName Like 'Skype For Business Basic 2016%') Or
(tblSoftwareUni.softwareName Like 'Microsoft Office 365 ProPlus%' And
tblSoftware.softwareVersion Like '16.%') Or
(tblSoftwareUni.softwareName Like 'Skype voor Bedrijven Basic 2016%') Or
(tblSoftwareUni.softwareName Like 'Office 365 16.0%') Or
(tblSoftwareUni.softwareName Like 'Microsoft Office Professionnel Plus%' And
tblSoftware.softwareVersion Like '16.%') Or
(tblSoftwareUni.softwareName Like
'Microsoft Office Professional Plus 2016%') Or
(tblSoftwareUni.softwareName Like 'Microsoft Office 2016%' And
tblAssetCustom.State = 1))
Order By tsysIPLocations.IPLocation,
tblAssets.IPAddress,
tblAssets.AssetName
‎12-21-2017 11:06 AM
Select Distinct Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.Username,
tblAssets.Userdomain,
Coalesce(tsysOS.Image, tsysAssetTypes.AssetTypeIcon10) As icon,
tblAssets.IPAddress,
tsysIPLocations.IPLocation,
tblAssetCustom.Manufacturer,
tblAssetCustom.Model,
tsysOS.OSname As OS,
tblAssets.SP,
tblAssets.Lastseen,
tblAssets.Lasttried
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Left 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 Not Like 'Microsoft Office 365%' And
tblSoftwareUni.softwareName Not Like 'Microsoft Office Professional 2016%' And
tblSoftwareUni.softwareName Not Like 'Skype For Business Basic 2016%' And
tblSoftwareUni.softwareName Not Like 'Microsoft Office 365 ProPlus%'
And tblSoftwareUni.softwareName Not Like 'Skype voor Bedrijven Basic 2016%'
And tblSoftwareUni.softwareName Not Like 'Office 365 16.0%' And
tblSoftwareUni.softwareName Not Like 'Microsoft Office Professionnal Plus%'
And
tblSoftwareUni.softwareName Not Like
'Microsoft Office Professional Plus 2016%' And tblSoftwareUni.softwareName Not
Like 'Microsoft Office 2016%' And tblSoftware.softwareVersion Not Like '16.%'
And tblState.Statename = 'Active'
Order By tblAssets.AssetName
‎12-20-2017 05:36 PM
‎12-20-2017 09:52 AM
Select Distinct Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.Username,
tblAssets.Userdomain,
Coalesce(tsysOS.Image, tsysAssetTypes.AssetTypeIcon10) As icon,
tblAssets.IPAddress,
tsysIPLocations.IPLocation,
tblAssetCustom.Manufacturer,
tblAssetCustom.Model,
tsysOS.OSname As OS,
tblAssets.SP,
tblAssets.Lastseen,
tblAssets.Lasttried
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Left 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 Not Like 'Microsoft Office 365%' And
tblSoftware.softwareVersion Not Like '16.%') Or
(tblSoftwareUni.softwareName Not Like 'Microsoft Office Professional 2016%')
Or
(tblSoftwareUni.softwareName Not Like 'Skype For Business Basic 2016%') Or
(tblSoftwareUni.softwareName Not Like 'Microsoft Office 365 ProPlus%' And
tblSoftware.softwareVersion Not Like '16.%') Or
(tblSoftwareUni.softwareName Not Like 'Skype voor Bedrijven Basic 2016%') Or
(tblSoftwareUni.softwareName Not Like 'Office 365 16.0%') Or
(tblSoftwareUni.softwareName Not Like 'Microsoft Office Professionnal Plus%'
And tblSoftware.softwareVersion Not Like '16.%') Or
(tblSoftwareUni.softwareName Not Like
'Microsoft Office Professional Plus 2016%') Or
(tblSoftwareUni.softwareName Not Like 'Microsoft Office 2016%' And
tblState.Statename = 'Active')
Order By tblAssets.AssetName
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now