Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 140
  • Last Modified:

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!!
0
creative555
Asked:
creative555
  • 3
1 Solution
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
You can use PSEXEC in conjunction with TZUTIL (not sure what version of Windows introduced it, but I'm fairly certain it's in 2008 R2 and later).

TZUTIL /g
0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
It MAY be in 2003.  Not sure.
0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
0
 
it_saigeDeveloperCommented:
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 -Capture.JPG-saige-
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now