Solved

Regional settings Reset

Posted on 2004-04-01
6
2,910 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
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

cPanel is a Unix based web hosting control panel that provides a graphical interface and automation tools designed to simplify the process of hosting a web site. cPanel utilizes a 3 tier structure that provides functionality for administrators, rese…
Step by step guide to Clean and Sort your windows registry! Introduction: Always remember: A Clean registry = Better performance = Save your invaluable time In this article we're going to clear our registry manually! Yes, manually! The e…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

840 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