Windows Time zone and OSD in Windows 7



So I have been working on a script in OSD that pulls the timezone of the current DP for the boundary a workstation is imaging in from the DP and insterts it into the (unattend.xml TimeZone tag). this was the easy part, the problem was translating what was returned as the Standard Time Zone name to what Windows 7 uses for the time zone. I finally ended up building a table for this that you can use to translate it from UTC Display to the standard name that is used by OSD (unattend.xml TimeZone tag) I try through powershell to get this with:

$TZ=Get-WmiObject -class "win32_TimeZone" -ComputerName <DPName>

But what it returned was not always what was used by the unattend.xml TimeZone tag. So here is the Timezone Table used. it has not yet been fully tested and any inacuracies I will update as I find them:

IndexWindows OSD NameStandard NameUTC DisplayGMT Display
000Dateline Standard TimeDateline Standard Time(UTC-12:00) International Date Line West(GMT-12:00) International Date Line West
001Samoa Standard TimeSamoa Standard Time(UTC+13:00) Samoa(GMT-11:00) Midway Island, Samoa
002Hawaiian Standard TimeHawaiian Standard Time(UTC-10:00) Hawaii(GMT-10:00) Hawaii
003Alaskan Standard TimeAlaskan Standard Time(UTC-09:00) Alaska(GMT-09:00) Alaska
004Pacific Standard TimePacific Standard Time(UTC-08:00) Pacific Time (US & Canada)(GMT-08:00) Pacific Time (US and Canada); Tijuana
013Mexico Standard Time 2Mountain Standard Time (Mexico)(UTC-07:00) Chihuahua, La Paz, ​Mazatlan(GMT-07:00) Chihuahua, La Paz, Mazatlan
015U.S. Mountain Standard TimeUS Mountain Standard Time(UTC-07:00) Arizona(GMT-07:00) Arizona
025Canada Central Standard TimeCanada Central Standard Time(UTC-06:00) Saskatchewan(GMT-06:00) Saskatchewan
030Mexico Standard TimeCentral Standard Time (Mexico)(UTC-06:00) Guadalajara, Mexico City, Monterrey(GMT-06:00) Guadalajara, Mexico City, Monterrey
033Central America Standard TimeCentral America Standard Time(UTC-06:00) Central America(GMT-06:00) Central America
040U.S. Eastern Standard TimeUS Eastern Standard Time(UTC-05:00) Indiana (East)(GMT-05:00) Indiana (East)
045S.A. Pacific Standard TimeSA Pacific Standard Time(UTC-05:00) Bogota, Lima, Quito(GMT-05:00) Bogota, Lima, Quito
050Atlantic Standard TimeAtlantic Standard Time(UTC-04:00) Atlantic Time (Canada)(GMT-04:00) Atlantic Time (Canada)
055S.A. Western Standard TimeSA Western Standard Time(UTC-04:00) Georgetown, La Paz, Manaus, San Juan(GMT-04:00) Caracas, La Paz
056Pacific S.A. Standard TimePacific SA Standard Time(UTC-04:00) Santiago(GMT-04:00) Santiago
060Newfoundland and Labrador Standard TimeNewfoundland Standard Time(UTC-03:30) Newfoundland(GMT-03:30) Newfoundland and Labrador
065E. South America Standard TimeE. South America Standard Time(UTC-03:00) Brasilia(GMT-03:00) Brasilia
070S.A. Eastern Standard TimeArgentina Standard Time(UTC-03:00) Buenos Aires(GMT-03:00) Buenos Aires, Georgetown
073Greenland Standard TimeGreenland Standard Time(UTC-03:00) Greenland(GMT-03:00) Greenland
075Mid-Atlantic Standard TimeMid-Atlantic Standard Time(UTC-02:00) Mid-Atlantic - Old(GMT-02:00) Mid-Atlantic
080Azores Standard TimeAzores Standard Time(UTC-01:00) Azores(GMT-01:00) Azores
083Cape Verde Standard TimeCape Verde Standard Time(UTC-01:00) Cape Verde Is.(GMT-01:00) Cape Verde Islands
085GMT Standard TimeGMT Standard Time(UTC) Dublin, Edinburgh, Lisbon, London(GMT) Greenwich Mean Time: Dublin, Edinburgh, Lisbon, London
090Greenwich Standard TimeMorocco Standard Time(UTC) Casablanca(GMT) Casablanca, Monrovia
095Central Europe Standard TimeCentral Europe Standard Time(UTC+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague(GMT+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague
100Central European Standard TimeCentral European Standard Time(UTC+01:00) Sarajevo, Skopje, Warsaw, Zagreb(GMT+01:00) Sarajevo, Skopje, Warsaw, Zagreb
105Romance Standard TimeRomance Standard Time(UTC+01:00) Brussels, Copenhagen, Madrid, Paris(GMT+01:00) Brussels, Copenhagen, Madrid, Paris
110W. Europe Standard TimeW. Europe Standard Time(UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna
113W. Central Africa Standard TimeW. Central Africa Standard Time(UTC+01:00) West Central Africa(GMT+01:00) West Central Africa
120Egypt Standard TimeEgypt Standard Time(UTC+02:00) Cairo(GMT+02:00) Cairo
125FLE Standard TimeFLE Standard Time(UTC+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius(GMT+02:00) Helsinki, Kiev, Riga, Sofia, Tallinn, Vilnius
130GTB Standard TimeGTB Standard Time(UTC+02:00) Athens, Bucharest(GMT+02:00) Athens, Istanbul, Minsk
135Israel Standard TimeJerusalem Standard Time(UTC+02:00) Jerusalem(GMT+02:00) Jerusalem
140South Africa Standard TimeSouth Africa Standard Time(UTC+02:00) Harare, Pretoria(GMT+02:00) Harare, Pretoria
145Russian Standard TimeRussian Standard Time(UTC+04:00) Moscow, St. Petersburg, Volgograd(GMT+03:00) Moscow, St. Petersburg, Volgograd
150Arab Standard TimeArab Standard Time(UTC+03:00) Kuwait, Riyadh(GMT+03:00) Kuwait, Riyadh
155E. Africa Standard TimeE. Africa Standard Time(UTC+03:00) Nairobi(GMT+03:00) Nairobi
158Arabic Standard TimeArabic Standard Time(UTC+03:00) Baghdad(GMT+03:00) Baghdad
160Iran Standard TimeIran Standard Time(UTC+03:30) Tehran(GMT+03:30) Tehran
165Arabian Standard TimeArabian Standard Time(UTC+04:00) Abu Dhabi, Muscat(GMT+04:00) Abu Dhabi, Muscat
170Caucasus Standard TimeCaucasus Standard Time(UTC+04:00) Yerevan(GMT+04:00) Baku, Tbilisi, Yerevan
175Transitional Islamic State of Afghanistan Standard TimeAfghanistan Standard Time(UTC+04:30) Kabul(GMT+04:30) Kabul
180Ekaterinburg Standard TimeEkaterinburg Standard Time(UTC+06:00) Ekaterinburg(GMT+05:00) Ekaterinburg
185West Asia Standard TimePakistan Standard Time(UTC+05:00) Islamabad, Karachi(GMT+05:00) Islamabad, Karachi, Tashkent
190India Standard TimeIndia Standard Time(UTC+05:30) Chennai, Kolkata, Mumbai, New Delhi(GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi
193Nepal Standard TimeNepal Standard Time(UTC+05:45) Kathmandu(GMT+05:45) Kathmandu
195Central Asia Standard TimeCentral Asia Standard Time(UTC+06:00) Astana(GMT+06:00) Astana, Dhaka
200Sri Lanka Standard TimeSri Lanka Standard Time(UTC+05:30) Sri Jayawardenepura(GMT+06:00) Sri Jayawardenepura
201N. Central Asia Standard TimeN. Central Asia Standard Time(UTC+07:00) Novosibirsk(GMT+06:00) Almaty, Novosibirsk
203Myanmar Standard TimeMyanmar Standard Time(UTC+06:30) Yangon (Rangoon)(GMT+06:30) Yangon Rangoon
205S.E. Asia Standard TimeSE Asia Standard Time(UTC+07:00) Bangkok, Hanoi, Jakarta(GMT+07:00) Bangkok, Hanoi, Jakarta
207North Asia Standard TimeNorth Asia Standard Time(UTC+08:00) Krasnoyarsk(GMT+07:00) Krasnoyarsk
210China Standard TimeChina Standard Time(UTC+08:00) Beijing, Chongqing, Hong Kong, Urumqi(GMT+08:00) Beijing, Chongqing, Hong Kong SAR, Urumqi
215Singapore Standard TimeMalay Peninsula Standard Time(UTC+08:00) Kuala Lumpur, Singapore(GMT+08:00) Kuala Lumpur, Singapore
220Taipei Standard TimeTaipei Standard Time(UTC+08:00) Taipei(GMT+08:00) Taipei
225W. Australia Standard TimeW. Australia Standard Time(UTC+08:00) Perth(GMT+08:00) Perth
227North Asia East Standard TimeNorth Asia East Standard Time(UTC+09:00) Irkutsk(GMT+08:00) Irkutsk, Ulaanbaatar
230Korea Standard TimeKorea Standard Time(UTC+09:00) Seoul(GMT+09:00) Seoul
235Tokyo Standard TimeTokyo Standard Time(UTC+09:00) Osaka, Sapporo, Tokyo(GMT+09:00) Osaka, Sapporo, Tokyo
240Yakutsk Standard TimeYakutsk Standard Time(UTC+10:00) Yakutsk(GMT+09:00) Yakutsk
245A.U.S. Central Standard TimeAUS Central Standard Time(UTC+09:30) Darwin(GMT+09:30) Darwin
250Cen. Australia Standard TimeCen. Australia Standard Time(UTC+09:30) Adelaide(GMT+09:30) Adelaide
255A.U.S. Eastern Standard TimeAUS Eastern Standard Time(UTC+10:00) Canberra, Melbourne, Sydney(GMT+10:00) Canberra, Melbourne, Sydney
260E. Australia Standard TimeE. Australia Standard Time(UTC+10:00) Brisbane(GMT+10:00) Brisbane
265Tasmania Standard TimeTasmania Standard Time(UTC+10:00) Hobart(GMT+10:00) Hobart
270Vladivostok Standard TimeVladivostok Standard Time(UTC+11:00) Vladivostok(GMT+10:00) Vladivostok
275West Pacific Standard TimeWest Pacific Standard Time(UTC+10:00) Guam, Port Moresby(GMT+10:00) Guam, Port Moresby
280Central Pacific Standard TimeCentral Pacific Standard Time(UTC+11:00) Solomon Is., New Caledonia(GMT+11:00) Magadan, Solomon Islands, New Caledonia
285Fiji Islands Standard TimeFiji Standard Time(UTC+12:00) Fiji(GMT+12:00) Fiji Islands, Kamchatka, Marshall Islands
290New Zealand Standard TimeNew Zealand Standard Time(UTC+12:00) Auckland, Wellington(GMT+12:00) Auckland, Wellington
300Tonga Standard TimeTonga Standard Time(UTC+13:00) Nuku'alofa(GMT+13:00) Nuku'alofa

This website and its content is copyright of ITHierarchy Inc - © ITHierarchy Inc 2013-2015. All rights reserved.

Any redistribution or reproduction of part or all of the contents in any form is prohibited other than the following:

  • you may print or download to a local hard disk extracts for your personal and non-commercial use only
  • you may copy the content to individual third parties for their personal use, but only if you acknowledge the website as the source of the material

You may not, except with our express written permission, distribute or commercially exploit the content. Nor may you transmit it or store it in any other website or other form of electronic retrieval system.