Solved

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
4
114 Views
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!!
0
Comment
Question by:creative555
  • 3
4 Comments
 
LVL 95

Accepted Solution

by:
Lee W, MVP earned 500 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).

TZUTIL /g
0
 
LVL 95

Expert Comment

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

Expert Comment

by:Lee W, MVP
ID: 40608816
0
 
LVL 33

Expert Comment

by:it_saige
ID: 40608848
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

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

This script can help you clean up your user profile database by comparing profiles to Active Directory users in a particular OU, and removing the profiles that don't match.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
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 …

856 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