Community FAQ
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Susan_A
Lansweeper Alumni
The report below lists your Windows computers' time zones. The report will only list assets that meet all of the following criteria:
  • The asset is a Windows computer.
  • The computer's state is set to "active".
  • The computer has been successfully scanned at least once.

Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.Username,
tblAssets.Userdomain,
tblAssets.IPAddress,
tblAssets.Firstseen,
tblAssets.Lastseen,
tblAssets.Lasttried,
'UTC' + ' ' + (Case When tblComputersystem.CurrentTimeZone > 0 Then '+'
Else '' End) + (Case When tblComputersystem.CurrentTimeZone = 0 Then ''
Else (Cast(Floor((tblComputersystem.CurrentTimeZone / 60)) As nvarchar))
End) As Timezone,
tsysOS.Image As icon
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tblComputersystem On tblAssets.AssetID = tblComputersystem.AssetID
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Where tblAssetCustom.State = 1
Order By tblAssets.Domain,
tblAssets.AssetName
1 REPLY 1
JSchlackman
Engaged Sweeper III

The above report (and the one that currently comes built into Lansweeper that is based on this) does not correctly deal with fractional time zones such as India Standard Time (UTC+5:30) due to the use of the FLOOR function. The following definition for the Timezone column will handle these time zones correctly, and format the output in ISO 8601 format:

'UTC' + (Case
  When tblComputersystem.CurrentTimeZone < 0 Then '-'
  Else '+'
End) + Format(DateAdd(Minute, Abs(tblComputersystem.CurrentTimeZone), 0), 'HH:mm') As Timezone

 

Reports & Analytics

Ask about reports you're interested in and share reports you've created. Subscribe to receive daily updates of reports shared in the Community.

New to Lansweeper?

Try Lansweeper For Free

Experience Lansweeper with your own data.
Sign up now for a 14-day free trial.

Try Now