We help IT Professionals succeed at work.
Get Started

trying to set time format via .ADM template

Last Modified: 2012-05-05

A client of ours is using software that requires the time format to be "hh:mm:ss" (so no ":tt").
It's windows server 2003 R2 environment, PCs running XP
I wanted to create a group policy that enforces this but from what i see there is no GPO for this.
I've tried implementing the following adm:

----- time.adm -----
class user
category "regional settings"
policy "Change time format"
keyname "control panel\international"
part "change to:" edittext
valuename "sTimeFormat"
default "HH:mm:ss"
end part
end policy
end category

----- time.adm -----

but it gives an error when i try to link it. The error is:

Error 51: Unexpected Keyword
Expected: CLASS, CATEGORY,[strings]

when checking the registry, the reg key shows as sTimeFormat,
and it's stored at HKCU\Control Panel\International.

I couldn't find an example of exactly what I was looking for online,
so what I've written here is based on a similar script for setting date format.

Would anybody know the correct script for this?

Watch Question
Most Valuable Expert 2019
Most Valuable Expert 2018
This problem has been solved!
Unlock 2 Answers and 7 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE