Might be a stretch but wondering if anyone here had any ideas.... I have a frontend hta built configured in the OSD Task Sequence which as part of it sets the variable OSDTimezone.
I basically have a dropdown box with a list of locations available to set the timezone.
My problem is that timezone names that have full stops don't set correctly and when the computer loads it has GMT time and not what was selected.
An example is that if "New Zealand Standard Time" is selected it works fine however "A.U.S. Eastern Standard Time" does not.
Here is an example of the vbscript section of the code:
If sTSLocation = "Auck" Then
oTaskSequence("OSDTimeZone") = "New Zealand Standard Time"
window.Close()
End If
If sTSLocation = "Suns" Then
oTaskSequence("OSDTimeZone") = "A.U.S. Eastern Standard Time"
window.Close()
End If
I have had this working before but I'll be damned if I can remember now.
I even put a msgbox in to ensure that it is picking up the rule correctly:
If sTSLocation = "Dand" Then
oTaskSequence("OSDTimeZone") = "A.U.S. Eastern Standard Time"
msgbox "Dandenong Selected"
window.Close()
End If
The msgbox displays however once the computer loads it is set to GMT time.
I also tried using the index number but that does not seem to work at all.
Any ideas?
Is there some way I can check what the variable is set to during the build process as that might give me some clue as to what is going on?
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.
Hey Guys,
Might be a stretch but wondering if anyone here had any ideas.... I have a frontend hta built configured in the OSD Task Sequence which as part of it sets the variable OSDTimezone.
I basically have a dropdown box with a list of locations available to set the timezone.
My problem is that timezone names that have full stops don't set correctly and when the computer loads it has GMT time and not what was selected.
I am using the microsoft list: http://technet.microsoft.com/en-us/library/cc772783%28WS.10%29.aspx
An example is that if "New Zealand Standard Time" is selected it works fine however "A.U.S. Eastern Standard Time" does not.
Here is an example of the vbscript section of the code:
I have had this working before but I'll be damned if I can remember now.
I even put a msgbox in to ensure that it is picking up the rule correctly:
The msgbox displays however once the computer loads it is set to GMT time.
I also tried using the index number but that does not seem to work at all.
Any ideas?
Is there some way I can check what the variable is set to during the build process as that might give me some clue as to what is going on?
Share this post
Link to post
Share on other sites