JSI Tip 1280. How do I check the time zone of a remote computer?

Jerold Schulman

May 2, 1999

1 Min Read
ITPro Today logo in a gray background | ITPro Today


In tip 0398, we described the time zone information in the registry.

Using tip 0170, you can download the REG freeware.

To check the time zone on a remote (or local) computer, type:

JSITZ [/n]

NOTE: You can also use JSITZ \ [/n]

Example: To check the time zone on remote computer JSI002:

JSITZ JSI002

This returns a TZ environment variable. JSI002 is located in Alpharetta, Georgia - USA,
so TZ is set to "Eastern Standard Time".

If the is not found, as in JSITZ XYZ,
TZ is set to "key \XYZMACHINESystemCurrentControlSetControlTimeZoneInformation"

NOTE: The optional /n switch suppresses the display.

NOTE: To check the time zone on your local computer, you can use JSITZ %ComputerName%

JSITZ.bat contains:

@echo offsetlocalset machine=%1set machine=%machine:"=%set machine=%machine:=%for /f "Tokens=1*" %%i in ('reg -lv "\%machine%MACHINESystemCurrentControlSetControlTimeZoneInformationStandardName"') do set TZ="%%j"if /i not "%2"=="/n" @echo %TZ%endlocal&set TZ=%TZ%


Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like