→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !
08-19-2014 03:49 AM
Solved! Go to Solution.
08-19-2014 01:56 PM
Rootkey: HKEY_LOCAL_MACHINE
RegPath: SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update
RegValue: AUOptions
Select Top 1000000 tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.Username,
tblAssets.Userdomain,
tblAssets.IPAddress,
tblAssets.Firstseen,
tblAssets.Lastseen,
Case UpdateCheck.Value When '4' Then 'download and install automatically'
When '3' Then 'ask before installing'
When '2' Then 'ask before downloading or installing'
When '1' Then 'never check for updates'
Else 'unknown, try rescanning the machine' End As UpdateSettings
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Left Join (Select tblRegistry.AssetID,
tblRegistry.Valuename,
tblRegistry.Value
From tblRegistry
Where tblRegistry.Valuename = 'auoptions') UpdateCheck
On UpdateCheck.AssetID = tblAssets.AssetID
Where tblAssetCustom.State = 1
Order By tblAssets.Domain,
tblAssets.AssetName
09-05-2014 10:35 PM
08-19-2014 01:56 PM
Rootkey: HKEY_LOCAL_MACHINE
RegPath: SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update
RegValue: AUOptions
Select Top 1000000 tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.Username,
tblAssets.Userdomain,
tblAssets.IPAddress,
tblAssets.Firstseen,
tblAssets.Lastseen,
Case UpdateCheck.Value When '4' Then 'download and install automatically'
When '3' Then 'ask before installing'
When '2' Then 'ask before downloading or installing'
When '1' Then 'never check for updates'
Else 'unknown, try rescanning the machine' End As UpdateSettings
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Left Join (Select tblRegistry.AssetID,
tblRegistry.Valuename,
tblRegistry.Value
From tblRegistry
Where tblRegistry.Valuename = 'auoptions') UpdateCheck
On UpdateCheck.AssetID = tblAssets.AssetID
Where tblAssetCustom.State = 1
Order By tblAssets.Domain,
tblAssets.AssetName
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now