Solved

Military Time .adm file for group policy. Is there anyway to apply it to machine rather than user?

Posted on 2006-06-26
1
642 Views
Last Modified: 2008-01-09
I found the following adm file on ee;
CLASS USER
CATEGORY "Time settings"
  POLICY "Use military time"
  KEYNAME "Control Panel\International"
  ACTIONLISTON
    VALUENAME "iTime"
    VALUE "1"
    VALUENAME "iTLZero"
    VALUE "1"
    VALUENAME "s1159"
    VALUE ""
    VALUENAME "s2359"
    VALUE ""
    VALUENAME "sTime"
    VALUE ":"
    VALUENAME "sTimeFormat"
    VALUE "HH:mm:ss"
    VALUENAME "iTimePrefix"
    VALUE "0"
  END ACTIONLISTON
  ACTIONLISTOFF
    VALUENAME "iTime"
    VALUE "0"
    VALUENAME "iTLZero"
    VALUE "0"
    VALUENAME "s1159"
    VALUE "am"
    VALUENAME "s2359"
    VALUE "pm"
    VALUENAME "sTime"
    VALUE ":"
    VALUENAME "sTimeFormat"
    VALUE "h:mm"
    VALUENAME "iTimePrefix"
    VALUE "0"
  END ACTIONLISTOFF
  END POLICY
END CATEGORY

Which works well for users but I need to apply to computers. I tried changing the "CLASS USER" to CLASS MACHINE but I get a Event ID 1096 on the client workstation "windows cannot access the registry policy file, \\domain\sysvol\domain\policies\{GUID}\Machine\registry.pol (the parameter is incorrect.)"

Thanks in advance
0
Comment
Question by:sweetaz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 28

Accepted Solution

by:
Michael Pfister earned 350 total points
ID: 16990355
The time settings are user specific, therefore they cannot be set on a machine level. Changing the CLASS won't work.
Why can't you use the policy applied to all users? Probably you don't want all computers set up in that way ...

Depending on what you have and want to achive you can either 1) import these default settings on any number of computers into the default registry hive or 2) put a registry hack into the login script.

1) won't work if you have roaming users
2) obviousliy can't work if you do not have a logon script

How to do it:
1) Make sure hidden files and directories are visible in explorer. Start regedit (Win XP) or regedt32 (Win 2000). Click on HKEY_LOCAL_MACHINE, then File -> load hive. Navigate to \Documents and Settings\Default User and click NTUSER.DAT. Give the hive a name like TEMP. Navigate to
HKEY_LOCAL_MACHINE\TEMP\Control Panel\International and make your settings. IMPORTANT! When finished, klick on HKEY_LOCAL_MACHINE\TEMP and select Unload hive from the File menu.

2) Add the following lines to your logon script
Create a reg file with your settings and export it to miltime.reg like this one:
------- snip ------------
REGEDIT4

[HKEY_CURRENT_USER\Control Panel\International]
"iTime"="1"
"iTLZero"="1"
"s1159"=""
"s2359"=""
"sTime"=":"
"sTimeFormat"="HH:mm:ss"
"iTimePrefix"="0"
------- snip ------------
Put the reg file into your NETLOGON directory.

Add this line to your logon script

If %COMPUTERNAME% == <computer name goes here> regedit /s %0\..\miltime.reg


Hope it helps,

Michael
0

Featured Post

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

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

Suggested Solutions

So you have two Windows Servers and you have a directory/folder/files on one that you'd like to mirror to the other?  You don't really want to deal with DFS or a 3rd party solution like Doubletake. You can use Robocopy from the Windows Server 200…
Numerous times I have been asked this questions that what is it that makes my machine log on so slow, there have been cases where computers took 23 minute exactly after taking password and getting to the desktop. Interesting thing was the fact th…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

752 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