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

Posted on 2015-02-13
Medium Priority
Last Modified: 2015-02-16
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!!
Question by:creative555
  • 3
LVL 97

Accepted Solution

Lee W, MVP earned 2000 total points
ID: 40608811
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).

LVL 97

Expert Comment

by:Lee W, MVP
ID: 40608813
It MAY be in 2003.  Not sure.
LVL 97

Expert Comment

by:Lee W, MVP
ID: 40608816
LVL 35

Expert Comment

ID: 40608848
You could use a batch script:
@echo off
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%

Open in new window

Name it whatever you like (I called mine tzi.bat) and call it as such -Capture.JPG-saige-

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s time for spooky stories and consuming way too much sugar, including the many treats we’ve whipped for you in the world of tech. Check it out!
The article explains the process to deploy a Self-Service password reset portal I developed a few years ago. Hopefully, it will prove useful to someone.  Any comments, bug reports etc. are welcome...
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Suggested Courses

599 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question