Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
LVL 96

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 96

Expert Comment

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

Expert Comment

by:Lee W, MVP
ID: 40608816
LVL 34

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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Active Directory can easily get cluttered with unused service, user and computer accounts. In this article, I will show you the way I like to implement ADCleanup..
Wouldn't it be nice if objects in Active Directory automatically moved into the correct Organizational Units? This is what AutoAD aims to do and as a plus, it automatically creates Sites, Subnets, and Organizational Units.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
Suggested Courses

671 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