Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
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
Medium Priority
?
663 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 29

Accepted Solution

by:
Michael Pfister earned 1050 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Many of us need to configure DHCP server(s) in their environment. We can do that simply via DHCP console on server or using MMC snap-in on each computer with Administrative Tools installed in a network. But what if we have to configure many DHCP ser…
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

722 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