Link to home
Start Free TrialLog in
Avatar of creative555
creative555

asked on

I need to get timezones for all DCs 2003. Is there a command line. I tried w32tm /tz and can only query local server.

I need to get time zones for all DCs 2003. Is there a command line. I tried w32tm /tz and can only query local server.
Could you please provide a command or query to get time zone. Note: need time zone NOT just time.

THAnk you!!
ASKER CERTIFIED SOLUTION
Avatar of Lee W, MVP
Lee W, MVP
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It MAY be in 2003.  Not sure.
You could use a batch script:
@echo off
setlocal
set machine=%1
set machine=%machine:"=%
set machine=%machine:\=%
set qry="\\%machine%\HKLM\System\CurrentControlSet\Control\TimeZoneInformation" /v StandardName
for /f "tokens=2,* delims= " %%i in ('reg query %qry%') do set TZ="%%j"
if /i not "%2"=="/n" @echo %TZ%
endlocal

Open in new window

Name it whatever you like (I called mine tzi.bat) and call it as such -User generated image-saige-