Jump to content
Sign in to follow this  
Ambient

Need help with Regional, timezone settings

Recommended Posts

Ambient

Hi need some help have been writing a script to autoinstall all software that my firm uses , all working ok using GUI with check boxes but when I try to set regional and reboot my machine sets timezone to Casablanca , why?I can't see the wood for the trees, code below .Perhaps someone can see what I can't, trying to set to GMT as you can see:

;~ RegWrite("HKEY_USERS\.DEFAULT\Control Panel\International", "iCountry", "REG_SZ", "44")

;~ RegWrite("HKEY_USERS\.DEFAULT\Control Panel\International", "iCurrDigits", "REG_SZ", "2")

;~ RegWrite("HKEY_USERS\.DEFAULT\Control Panel\International", "iCurrency", "REG_SZ", "0")

;~ RegWrite("HKEY_USERS\.DEFAULT\Control Panel\International", "iDate", "REG_SZ", "1")

;~ RegWrite("HKEY_USERS\.DEFAULT\Control Panel\International", "iDigits", "REG_SZ", "2")

;~ RegWrite("HKEY_USERS\.DEFAULT\Control Panel\International", "iLZero", "REG_SZ", "1")

;~ RegWrite("HKEY_USERS\.DEFAULT\Control Panel\International", "iMeasure", "REG_SZ", "0")

;~ RegWrite("HKEY_USERS\.DEFAULT\Control Panel\International", "iNegCurr", "REG_SZ", "1")

;~ RegWrite("HKEY_USERS\.DEFAULT\Control Panel\International", "iTime", "REG_SZ", "1")

;~ RegWrite("HKEY_USERS\.DEFAULT\Control Panel\International", "iTLZero", "REG_SZ", "1")

;RegWrite("HKEY_USERS\.DEFAULT\Control Panel\International", "Locale", "REG_SZ", "00000409")

;~ RegWrite("HKEY_USERS\.DEFAULT\Control Panel\International", "Locale", "REG_SZ", "00000809")

;~ RegWrite("HKEY_USERS\.DEFAULT\Control Panel\International", "s1159", "REG_SZ", "AM")

;~ RegWrite("HKEY_USERS\.DEFAULT\Control Panel\International", "s2359", "REG_SZ", "PM")

;~ RegWrite("HKEY_USERS\.DEFAULT\Control Panel\International", "s2359", "REG_SZ", "PM")

;~ RegWrite("HKEY_USERS\.DEFAULT\Control Panel\International", "s2359", "REG_SZ", "PM")

;~ RegWrite("HKEY_USERS\.DEFAULT\Control Panel\International", "sCountry", "REG_SZ", "United Kingdom")

;~ RegWrite("HKEY_USERS\.DEFAULT\Control Panel\International", "sCurrency", "REG_SZ", "£")

;~ RegWrite("HKEY_USERS\.DEFAULT\Control Panel\International", "sDate", "REG_SZ", "/")

;~ RegWrite("HKEY_USERS\.DEFAULT\Control Panel\International", "sDecimal", "REG_SZ", ".")

;~ RegWrite("HKEY_USERS\.DEFAULT\Control Panel\International", "sLanguage", "REG_SZ", "ENG")

;~ RegWrite("HKEY_USERS\.DEFAULT\Control Panel\International", "sList", "REG_SZ", ",")

;~ RegWrite("HKEY_USERS\.DEFAULT\Control Panel\International", "sLongDate", "REG_SZ", "dd MMMM yyyy")

;~ RegWrite("HKEY_USERS\.DEFAULT\Control Panel\International", "sShortDate", "REG_SZ", "dd/MM/yyyy")

;~ RegWrite("HKEY_USERS\.DEFAULT\Control Panel\International", "sThousand", "REG_SZ", ",")

;~ RegWrite("HKEY_USERS\.DEFAULT\Control Panel\International", "sTime", "REG_SZ", ":")

;~ RegWrite("HKEY_USERS\.DEFAULT\Control Panel\International", "sTimeFormat", "REG_SZ", "HH:mm:ss")

;~ RegWrite("HKEY_USERS\.DEFAULT\Control Panel\International", "iTimePrefix", "REG_SZ", "0")

;~ RegWrite("HKEY_USERS\.DEFAULT\Control Panel\International", "sMonDecimalSep", "REG_SZ", ".")

;~ RegWrite("HKEY_USERS\.DEFAULT\Control Panel\International", "sMonThousandSep", "REG_SZ", ",")

;~ RegWrite("HKEY_USERS\.DEFAULT\Control Panel\International", "iNegNumber", "REG_SZ", "1")

;~ RegWrite("HKEY_USERS\.DEFAULT\Control Panel\International", "sNativeDigits", "REG_SZ", "0123456789")

;~ RegWrite("HKEY_USERS\.DEFAULT\Control Panel\International", "NumShape", "REG_SZ", "1")

;~ RegWrite("HKEY_USERS\.DEFAULT\Control Panel\International", "iCalendarType", "REG_SZ", "1")

;~ RegWrite("HKEY_USERS\.DEFAULT\Control Panel\International", "iFirstDayOfWeek", "REG_SZ", "0")

;~ RegWrite("HKEY_USERS\.DEFAULT\Control Panel\International", "iFirstWeekOfYear", "REG_SZ", "0")

;~ RegWrite("HKEY_USERS\.DEFAULT\Control Panel\International", "sGrouping", "REG_SZ", "3;0")

;~ RegWrite("HKEY_USERS\.DEFAULT\Control Panel\International", "sMonGrouping", "REG_SZ", "3;0")

;~ RegWrite("HKEY_USERS\.DEFAULT\Control Panel\International", "sPositiveSign", "REG_SZ", "")

;~ RegWrite("HKEY_USERS\.DEFAULT\Control Panel\International", "sNegativeSign", "REG_SZ", "-")

;~ RegWrite("HKEY_CURRENT_USER\Control Panel\International\Geo", "Nation", "REG_SZ", "242")

;~ RegWrite("HKEY_USERS\.DEFAULT\Control Panel\International\Geo", "Nation", "REG_SZ", "242")

;~ _FileWriteLog($logfilepath, "Finished setting International Settings on " & $computername)

;~ _FileWriteLog($logfilepath, "Now setting Timezone Settings on " & $computername)

RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation", "Bias", "REG_DWORD", "0x0")

RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation", "StandardName", "REG_SZ", "GMT Standard Time")

RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation", "StandardBias", "REG_SZ", "0x0")

RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation", "StandardStart", "REG_BINARY", "00,00,0a,00,05,00,02,00,00,00,00,00,00,00,00,00")

RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation", "DaylightName", "REG_SZ", "GMT Daylight Time")

RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation", "DaylightBias", "REG_DWORD", "ffffffc4")

RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation", "DaylightStart", "REG_BINARY", "00,00,03,00,05,00,01,00,00,00,00,00,00,00,00,00")

RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation", "ActiveTimeBias", "REG_DWORD", "ffffffc4") ; Set the country

Edited by Ambient

Share this post


Link to post
Share on other sites
DrKovra

And you want the time zone from ???? ===>>>> United Kingdom !!!!

right ?


[s][font="Impact"]░▒▓▓►DrKovra◄▓▓▒░[/font][/s]The only thing I [sup]know [/sup]is that I don't know [sub]nothing[/sub]--------------- __________------------------------------ __________---------------

Share this post


Link to post
Share on other sites
DrKovra

Why don't u export that two registry parts ... from a well configured PC ... and compare to your script ?

Maybe then you could see what's wrong or missing ... it's just a start point ...


[s][font="Impact"]░▒▓▓►DrKovra◄▓▓▒░[/font][/s]The only thing I [sup]know [/sup]is that I don't know [sub]nothing[/sub]--------------- __________------------------------------ __________---------------

Share this post


Link to post
Share on other sites
Ambient

And you want the time zone from ???? ===>>>> United Kingdom !!!!

right ?

yes United Kingdom GMT in time prperties I want to show as (GMT) Greenwich Mean Time:Dublin,Edinburgh,Lisbon,London

Share this post


Link to post
Share on other sites
DrKovra

"TimeZoneInformation" .... Check default Permissions in the Registry ... for Users and Power Users ... maybe can not change that keys !!!

Why don't you log a RegRead after doing the regwrite to the TimeZoneInformation ? ... ^_^


[s][font="Impact"]░▒▓▓►DrKovra◄▓▓▒░[/font][/s]The only thing I [sup]know [/sup]is that I don't know [sub]nothing[/sub]--------------- __________------------------------------ __________---------------

Share this post


Link to post
Share on other sites
Ambient

great idea thanks I'll try that

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×