Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 133
  • 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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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