Solved

Regional settings Reset

Posted on 2004-04-01
6
2,884 Views
Last Modified: 2008-10-01
Hey there,

Everything works just fine, except that the “Short date” in regional settings is getting reset to the standard format, m-d-yyyy.  I need it to stay as yyyy/dd/mm.  I have this set in the default profile before I run Sysprep and create the image, but it gets reset.  I have this for my regional settings in Sysprep,
[RegionalSettings]
    LanguageGroup=1
    SystemLocale=00000409
    UserLocale=00000409
    InputLocale=0409:00000409
It seems Sysprep is resetting the regional settings for the default profile; we have custom software that requires a correct date format, can anyone help?
Thanks
I also tried changing the value in the regestry after, I copy all the settings in currentuser/control/international to the .default , this does not have any effect for me.
(What I really need..., is a list of all """"UserLocale ID's""" not language lacale id's.., I cannot find them anywhere..
0
Comment
Question by:adamot
6 Comments
 
LVL 24

Accepted Solution

by:
Kenneniah earned 125 total points
ID: 10735736
You can do this through group policy. First you need to create an administrative template. Copy the following into notepad, and save as sdformat.adm

; Begin custom .ADM template
; This policy file modifies the short date format for all users.

CLASS USER

CATEGORY !!DFORMAT
KEYNAME "Control Panel\International"
POLICY !!DefineDateFormat
PART !!DateFormat DROPDOWNLIST
VALUENAME sShortDate REQUIRED

ITEMLIST
NAME !!ShortDate1 VALUE !!ShortDate1
ACTIONLIST
VALUENAME sShortDate        VALUE "MM/dd/yyyy"
END ACTIONLIST

NAME !!ShortDate2 VALUE !!ShortDate2
ACTIONLIST
VALUENAME sShortDate        VALUE "M/d/yy"
END ACTIONLIST

NAME !!ShortDate3 VALUE !!ShortDate3
ACTIONLIST
VALUENAME sShortDate        VALUE "M/d/yyyy"
END ACTIONLIST

NAME !!ShortDate4 VALUE !!ShortDate4
ACTIONLIST
VALUENAME sShortDate        VALUE "MM/dd/yy"
END ACTIONLIST

NAME !!ShortDate5 VALUE !!ShortDate5
ACTIONLIST
VALUENAME sShortDate        VALUE "yy/MM/dd"
END ACTIONLIST

NAME !!ShortDate6 VALUE !!ShortDate6
ACTIONLIST
VALUENAME sShortDate        VALUE "yyyy-MM-dd"
END ACTIONLIST

NAME !!ShortDate7 VALUE !!ShortDate7
ACTIONLIST
VALUENAME sShortDate        VALUE "dd-MMM-yy"
END ACTIONLIST

END ITEMLIST
END PART
END POLICY

END CATEGORY

[Strings]
DFORMAT = "Short Date Format Settings"
DefineDateFormat = "Date Format for All Users"
DateFormat = "Date Format"
ShortDate1 = "MM/dd/yyyy"
ShortDate2 = "M/d/yy"
ShortDate3 = "M/d/yyyy"
ShortDate4 = "MM/dd/yy"
ShortDate5 = "yy/MM/dd"
ShortDate6 = "yyyy-MM-dd"
ShortDate7 = "dd-MMM-yy"

; End custom .ADM template.

Then in gpedit.msc right-click Adminstrative Templates, select Add/Remove Templates, hit add, then browse to the adm file you just created.
You should now be able to browse to User Configurate|Administrative Templates|Short Date Format Settings|Date Format for All Users
(You may have to click on View|Filtering and remove the checkbox for "Only show policy settings that can be fully managed" for this setting to show up.
Set it for the desired date format and done.
If on a domain you can push this out through the domain, if not, browse to C:\WINDOWS\system32\GroupPolicy\User and copy the Registry.pol file to the same location on all computers. This could be included in your sysprep image this way as well.
0
 

Author Comment

by:adamot
ID: 10738040
Works like a friggen charm man, thank you kindly.  I knew it could be done with GP, but was not to sure about how to go about it.
0
 
LVL 24

Expert Comment

by:Kenneniah
ID: 10738765
Most welcome and glad it worked out for you!
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Expert Comment

by:samsinna
ID: 11071808
Kenneniah,

Please tell me how to change the time format  to HH:mm:ss using group policy.

thanks,
sam
0
 

Expert Comment

by:samsinna
ID: 11073637
Kenneniah,

Please ignore my previous question,i have fixed this problem.

thanks,
sam
0
 

Expert Comment

by:SECIRMU
ID: 13260083
Kenneniah,

Please tell me how to include in the SYSPREP ?

thanks,

Wagner

0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

If you build your web application in Visual Studio you'll get at least a few binaries, or .DLL, files in your bin folder. However, there is more compiling to be done. Normally this would happen when an ASP.NET resource within the web site is request…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now