Jump to content


  • 0
prashanth E

Deploy windows XP SP 2 with regional settings

Question

HI ALL ,

 

we need to Deploy the image to multiple location with diff language & Keyboard settings ,I have a issue with the regional settings which i am trying to deploy OS of windows XP SP2 in Task sequence from SCCM 2007 ,

 

Please guide me what i need to do , i have not installed MDT on it . i need to deploy it through only SCCM 2007.

 

Thank you

Prashanth

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

HI ALL ,

 

we need to Deploy the image to multiple location with diff language & Keyboard settings ,I have a issue with the regional settings which i am trying to deploy OS of windows XP SP2 in Task sequence from SCCM 2007 ,

 

Please guide me what i need to do , i have not installed MDT on it . i need to deploy it through only SCCM 2007.

 

Thank you

Prashanth

====================================================================================

 

edit/Add the following lines to C:\Program Files\Microsoft Deployment Toolkit\SCCM\Deploy_SCCM_Definition_ENU.xml

 

<Pane id="TimeZone">

<Condition><![CDATA[uCase(Property("SkipTimeZone"))<>"YES" and Property("DeploymentType")<>"REPLACE" ]]></Condition>

<Initialization><![CDATA[TimeZone_Initialization ]]></Initialization>

<Validation><![CDATA[TimeZoneName.Value <> "" and TimeZone.Value <> "" ]]></Validation>

<Body><![CDATA[

<!-- Use the H1 Style for titles at the top of the page -->

<H1>Please Select Your State<H1>

 

<select id=TimeZoneList size=15 language=VBScript onchange="SetTimeZoneValue" class=wideedit>

 

<!--

The following is a static table of Time Zones supported by Windows XP/2003 and Windows Vista

TimeZone Format:

<option value="TimeZoneNumber;TimeZoneName[;TimeZoneName_Alternate][;TimeZoneDescription_Alternate]">TimeZoneDescription</option>

Where:

TimeZoneNumber - The Time Zone number used in Windows XP/2003 (Whistler) Unattend.txt files. [GuiUnattended] TimeZone

TimeZoneName - The Time Zone Name used in Windows Vista (Longhorn) unattend.xml files. <TimeZone> entries

TimeZoneName_Alternate - This is the alternate Name used in Windows XP documentation. (Used to Match Time Zone only).

TimeZoneDescription_Alternate - This is the Alternate Description used in Windows XP Documentation. (Used to Match Time Zone only).

TimeZoneDescription - This is the value displayed in the dialog box.

-->

 

<!-- This is the original List of Timezones. Please select which ones you would like in the script

<option value="90;Greenwich Standard Time">(GMT) Casablanca, Monrovia</option>

<option value="85;GMT Standard Time">(GMT) Greenwich Mean Time : Dublin, Edinburgh, Lisbon, London</option>

<option value="110;W. Europe Standard Time">(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna</option>

<option value="95;Central Europe Standard Time">(GMT+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague</option>

<option value="105;Romance Standard Time">(GMT+01:00) Brussels, Copenhagen, Madrid, Paris</option>

<option value="100;Central European Standard Time">(GMT+01:00) Sarajevo, Skopje, Warsaw, Zagreb</option>

<option value="113;W. Central Africa Standard Time">(GMT+01:00) West Central Africa</option>

<option value="130;GTB Standard Time">(GMT+02:00) Athens, Istanbul, Minsk</option>

<option value="115;E. Europe Standard Time">(GMT+02:00) Bucharest</option>

<option value="120;Egypt Standard Time">(GMT+02:00) Cairo</option>

<option value="140;South Africa Standard Time">(GMT+02:00) Harare, Pretoria</option>

<option value="125;FLE Standard Time;(GMT+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius">(GMT+02:00) Helsinki, Kiev, Riga, Sofia, Tallinn, Vilnius</option>

<option value="135;Israel Standard Time">(GMT+02:00) Jerusalem</option>

<option value="158;Arabic Standard Time">(GMT+03:00) Baghdad</option>

<option value="150;Arab Standard Time">(GMT+03:00) Kuwait, Riyadh</option>

<option value="145;Russian Standard Time">(GMT+03:00) Moscow, St. Petersburg, Volgograd</option>

<option value="155;E. Africa Standard Time">(GMT+03:00) Nairobi</option>

<option value="160;Iran Standard Time">(GMT+03:30) Tehran</option>

<option value="165;Arabian Standard Time">(GMT+04:00) Abu Dhabi, Muscat</option>

<option value="170;Caucasus Standard Time">(GMT+04:00) Baku, Tbilisi, Yerevan</option>

<option value="175;Afghanistan Standard Time;Transitional Islamic State of Afghanistan Standard Time">(GMT+04:30) Kabul</option>

<option value="180;Ekaterinburg Standard Time">(GMT+05:00) Ekaterinburg</option>

<option value="185;West Asia Standard Time">(GMT+05:00) Islamabad, Karachi, Tashkent</option>

<option value="190;India Standard Time">(GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi</option>

<option value="193;Nepal Standard Time">(GMT+05:45) Kathmandu</option>

<option value="201;N. Central Asia Standard Time">(GMT+06:00) Almaty, Novosibirsk</option>

<option value="195;Central Asia Standard Time">(GMT+06:00) Astana, Dhaka</option>

<option value="200;Sri Lanka Standard Time">(GMT+06:00) Sri Jayawardenepura</option>

<option value="203;Myanmar Standard Time">(GMT+06:30) Yangon (Rangoon)</option>

<option value="205;SE Asia Standard Time;S.E. Asia Standard Time">(GMT+07:00) Bangkok, Hanoi, Jakarta</option>

<option value="207;North Asia Standard Time">(GMT+07:00) Krasnoyarsk</option>

<option value="210;China Standard Time">(GMT+08:00) Beijing, Chongqing, Hong Kong SAR, Urumqi</option>

<option value="227;North Asia East Standard Time;(GMT+08:00) Irkutsk, Ulan Bator">(GMT+08:00) Irkutsk, Ulaanbaatar</option>

<option value="215;Singapore Standard Time">(GMT+08:00) Kuala Lumpur, Singapore</option>

<option value="225;W. Australia Standard Time">(GMT+08:00) Perth</option>

<option value="220;Taipei Standard Time">(GMT+08:00) Taipei</option>

<option value="235;Tokyo Standard Time">(GMT+09:00) Osaka, Sapporo, Tokyo</option>

<option value="230;Korea Standard Time">(GMT+09:00) Seoul</option>

<option value="240;Yakutsk Standard Time">(GMT+09:00) Yakutsk</option>

<option value="250;Cen. Australia Standard Time">(GMT+09:30) Adelaide</option>

<option value="245;AUS Central Standard Time;A.U.S. Central Standard Time">(GMT+09:30) Darwin</option>

<option value="260;E. Australia Standard Time">(GMT+10:00) Brisbane</option>

<option value="255;AUS Eastern Standard Time;A.U.S. Eastern Standard Time">(GMT+10:00) Canberra, Melbourne, Sydney</option>

<option value="275;West Pacific Standard Time">(GMT+10:00) Guam, Port Moresby</option>

<option value="265;Tasmania Standard Time">(GMT+10:00) Hobart</option>

<option value="270;Vladivostok Standard Time">(GMT+10:00) Vladivostok</option>

<option value="280;Central Pacific Standard Time">(GMT+11:00) Magadan, Solomon Islands, New Caledonia</option>

<option value="290;New Zealand Standard Time">(GMT+12:00) Auckland, Wellington</option>

<option value="285;Fiji Islands Standard Time">(GMT+12:00) Fiji Islands, Kamchatka, Marshall Islands</option>

<option value="300;Tonga Standard Time">(GMT+13:00) Nuku'alofa</option>

<option value="80;Azores Standard Time">(GMT-01:00) Azores</option>

<option value="83;Cape Verde Standard Time">(GMT-01:00) Cape Verde Islands</option>

<option value="75;Mid-Atlantic Standard Time">(GMT-02:00) Mid-Atlantic</option>

<option value="65;E. South America Standard Time">(GMT-03:00) Brasilia</option>

<option value="70;SA Eastern Standard Time;S.A. Eastern Standard Time">(GMT-03:00) Buenos Aires, Georgetown</option>

<option value="73;Greenland Standard Time">(GMT-03:00) Greenland</option>

<option value="60;Newfoundland Standard Time;Newfoundland and Labrador Standard Time">(GMT-03:30) Newfoundland and Labrador</option>

<option value="50;Atlantic Standard Time">(GMT-04:00) Atlantic Time (Canada)</option>

<option value="55;SA Western Standard Time;S.A. Western Standard Time">(GMT-04:00) Caracas, La Paz</option>

<option value="56;Pacific SA Standard Time;Pacific S.A. Standard Time">(GMT-04:00) Santiago</option>

<option value="45;SA Pacific Standard Time;S.A. Pacific Standard Time">(GMT-05:00) Bogota, Lima, Quito</option>

<option value="35;Eastern Standard Time">(GMT-05:00) Eastern Time (US and Canada)</option>

<option value="40;US Eastern Standard Time;U.S. Eastern Standard Time">(GMT-05:00) Indiana (East)</option>

<option value="33;Central America Standard Time">(GMT-06:00) Central America</option>

<option value="20;Central Standard Time">(GMT-06:00) Central Time (US and Canada)</option>

<option value="30;Mexico Standard Time">(GMT-06:00) Guadalajara, Mexico City, Monterrey</option>

<option value="25;Canada Central Standard Time">(GMT-06:00) Saskatchewan</option>

<option value="15;US Mountain Standard Time;U.S. Mountain Standard Time">(GMT-07:00) Arizona</option>

<option value="13;Mexico Standard Time 2">(GMT-07:00) Chihuahua, La Paz, Mazatlan</option>

<option value="10;Mountain Standard Time">(GMT-07:00) Mountain Time (US and Canada)</option>

<option value="4;Pacific Standard Time">(GMT-08:00) Pacific Time (US and Canada); Tijuana</option>

<option value="3;Alaskan Standard Time">(GMT-09:00) Alaska</option>

<option value="2;Hawaiian Standard Time">(GMT-10:00) Hawaii</option>

<option value="1;Samoa Standard Time">(GMT-11:00) Midway Island, Samoa</option>

<option value="0;Dateline Standard Time">(GMT-12:00) International Date Line West</option>

-->

 

<option value="250;Cen. Australia Standard Time"> South Australia </option>

<option value="255;AUS Eastern Standard Time;A.U.S. Eastern Standard Time"> Victoria </option>

<option value="225;W. Australia Standard Time"> Western Australia </option>

<option value="255;AUS Eastern Standard Time;A.U.S. Eastern Standard Time"> New South Wales </option>

<option value="260;E. Australia Standard Time"> Queensland </option>

<option value="255;AUS Eastern Standard Time;A.U.S. Eastern Standard Time"> Australian Capital Territory </option>

<option value="265;Tasmania Standard Time"> Tasmania </option>

<option value="245;AUS Central Standard Time;A.U.S. Central Standard Time"> Northern Territory </option>

 

</select>

 

<input type=hidden Name=TimeZone /> <!-- XP Style TimeZone PST = 004 -->

<input type=hidden Name=TimeZoneName /> <!-- Vista Style TimeZone PST = "Pacific Standard Time" -->

 

]]></Body>

</Pane>

 

===================================================================================

Edit and Add the function to C:\Program Files\Microsoft Deployment Toolkit\SCCM\Deploy_SCCM_Scripts.vbs

 

 

Function SetTimeZoneValue

' When the user selects a value in the TimeZoneList we must populate the hidden Text Values

Dim TimeSplit

 

TimeSplit = split( TimeZoneList.value , ";" )

If ubound(TimeSplit) < 1 then

ElseIf not isNumeric(TimeSplit(0)) then

Else

TimeZoneName.Value = TimeSplit(1)

TimeZone.Value = TimeSplit(0)

End if

 

End function

 

Function TimeZone_Initialization

 

Dim TimeZone, i, TimeSplit, Item, test

 

'If either of the TimeZone Properties have been set, then select the coresponding list item.

If Property("TimeZone") <> "" or Property("TimeZoneName") <> "" then

For i = 0 to TimeZoneList.Options.Length - 1

 

TimeSplit = split( TimeZoneList.Options(i).value , ";" )

 

If ubound(TimeSplit) >= 1 then

If Property("TimeZone") <> "" then

If IsNumeric(Property("TimeZone")) then

' Check Windows XP style Name

If CInt(Property("TimeZone")) = cint(TimeSplit(0)) then

TimeZoneList.SelectedIndex = i

SetTimeZoneValue

Exit function

End if

Else

' Check Windows Vista Style Name

If UCase(Property("TimeZone")) = UCase(TimeSplit(1)) then

TimeZoneList.SelectedIndex = i

SetTimeZoneValue

Exit function

End if

End if

ElseIf Property("TimeZoneName") <> "" then

' Check Windows Vista Style Name

If UCase(Property("TimeZoneName")) = UCase(TimeSplit(1)) then

TimeZoneList.SelectedIndex = i

SetTimeZoneValue

Exit function

End if

End if

End if

Next

End if

 

' Extract out the current TimeZone

For each TimeZone in objWMI.InstancesOf("Win32_TimeZone")

Exit for ' Take the first entry and break out of loop

Next

 

If IsEmpty(TimeZone) then

Exit function

End if

 

'Try to match the timezone against the current Timezone Name

For i = 0 to TimeZoneList.Options.Length - 1

 

TimeSplit = split( TimeZoneList.Options(i).value , ";" )

 

If UBound(TimeSplit) >= 1 then

' Compare the Description

If UCase(TimeZoneList.Options(i).Text) = UCase(TimeZone.Description) then

TimeZoneList.SelectedIndex = i

SetTimeZoneValue

Exit function

End if

 

' See if there is a match in the alternate description or other Values

For each test in array(TimeZone.Description,TimeZone.StandardName)

If test <> "" then

For each item in TimeSplit

If Item <> "" then

 

If UCase(test) = UCase(Item) then

TimeZoneList.SelectedIndex = i

SetTimeZoneValue

Exit function

End if

 

End if

Next

End if

Next

 

End if

Next

 

 

' Try to match against the closest GMT value (This *May* select an entry that is not *exact*)

For i = 0 to TimeZoneList.Options.Length - 1

 

test = Instr(1, TimeZone.Description," ")

If test <> 0 then

 

If left(TimeZone.Description, test) = left(TimeZoneList.Options(i).Text, test) then

TimeZoneList.SelectedIndex = i

SetTimeZoneValue

Exit function

End if

 

End if

Next

 

End function

 

 

===================================================================================

 

Step 3 - Create a new Boot Image with Media Hook

this should give you a prompt to select region. However the codes provided to you are just examples.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.