Solved

Regional settings Reset

Posted on 2004-04-01
6
2,895 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
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

If your system is showing symptoms of browser hijacks or 'google search redirects' check out my other article (http://rdsrc.us/u3GP7A) first and run the tool TDSSKiller (http://rdsrc.us/GDBBs4) to get rid of the infection. Once done, and if the …
If you have done a reformat of your hard drive and proceeded to do a successful Windows XP installation, you may notice that a choice between two operating systems when you start up the machine. Here is how to get rid of this: Click Start Clic…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

863 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

27 Experts available now in Live!

Get 1:1 Help Now