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
611 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
1 Comment
 
LVL 28

Accepted Solution

by:
Michael Pfister earned 350 total points
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

The HP utility "HP Lights-Out Online Configuration Utility for Windows Server 2003/2008" could be of great use when it comes to remotely configure a HP servers ILO WITHOUT rebooting the server. We would only need to create and run scripts using thi…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

771 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

12 Experts available now in Live!

Get 1:1 Help Now