Force all users to use 24 hour time

I have a box that is shared amongst multiple users and I need to force all login's to use 24 hour time. I am admin on the box but I don't have access to group policy's or the actual users themselves. I would like a solution that would work for any user who logs in, not just a preset list of users. I tried looking around for a command line process that I could put in the startup folder but I couldn't find anything. I modified the date time settings for myself hoping that it would propogate down to all users but it didn't. Please provide some direction.
LVL 15
justinbilligAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

samiam41Commented:
Greetings.  A similar question was asked before and an expert provided this answer.  See if it matches your needs:

http://www.experts-exchange.com/Networking/Windows_Networking/Q_21488663.html
0
samiam41Commented:
You can use a local group policy on that pc.  From the start > run menu, enter in gpedit.msc
0
justinbilligAuthor Commented:
samiam41

That solution looks good but I have very little knowledge on how to do this. I opened up the group policy editor on my machine ( I am going to test it there first ) but I found no way to import it in. Where do I put it?
0
Newly released Acronis True Image 2019

In announcing the release of the 15th Anniversary Edition of Acronis True Image 2019, the company revealed that its artificial intelligence-based anti-ransomware technology – stopped more than 200,000 ransomware attacks on 150,000 customers last year.

samiam41Commented:
Gotcha.  Let me write a quick guide on how to do this.
0
samiam41Commented:
Here we go.  

-Open up notepad and copy/paste the settings from the other post (I included them below to save a step).
-Save the notepad doc as MilitaryTime.adm in the c:\Windows\Inf directory
-Run gpedit.msc from start > run
-Under "Computer Configuration" > Administrative Templates (right click Admin Templates and choose View > Filtering > and uncheck "Only show settings that can be fully managed")
-Right click on Administrative Templates again and now choose "Add/Remove Templates"
-Choose Add > browse to the c:\windows\inf directory and select the militarytime.adm
-choose "Close"

*Restart pc
----[MilitaryTime.adm]----
CLASS USER
CATEGORY "Time settings"
POLICY "Use military time"
KEYNAME "Control Panel\International"
ACTIONLISTON
; Settings for military time:
  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"
  VALUENAME "sDate" VALUE "."
  VALUENAME "sShortDate" VALUE "dd.MM.yyyy"
  VALUENAME "sLongDate" VALUE "dddd, d. MMMM yyyy"
END ACTIONLISTON
ACTIONLISTOFF
; Settings for normal time:
  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"
  VALUENAME "sDate" VALUE "/"
  VALUENAME "sShortDate" VALUE "mm/dd/yyyy"
  VALUENAME "sLongDate" VALUE "dddd, d. MMMM yyyy"
END ACTIONLISTOFF
END POLICY
END CATEGORY
----[MilitaryTime.adm]----

Open in new window

0
samiam41Commented:
Correction!

Please see updated code below!
CLASS USER
CATEGORY "Time settings"
POLICY "Use military time"
KEYNAME "Control Panel\International"
ACTIONLISTON
; Settings for military time:
  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"
  VALUENAME "sDate" VALUE "."
  VALUENAME "sShortDate" VALUE "dd.MM.yyyy"
  VALUENAME "sLongDate" VALUE "dddd, d. MMMM yyyy"
END ACTIONLISTON
ACTIONLISTOFF
; Settings for normal time:
  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"
  VALUENAME "sDate" VALUE "/"
  VALUENAME "sShortDate" VALUE "mm/dd/yyyy"
  VALUENAME "sLongDate" VALUE "dddd, d. MMMM yyyy"
END ACTIONLISTOFF
END POLICY
END CATEGORY

Open in new window

0
samiam41Commented:
Also, when I tested it on a virtual pc, I put the militarytime.adm template under "Computer Configuration" first and then removed it. I left it under "User Configuration" and got the best results.
0
samiam41Commented:
Any update?
0
justinbilligAuthor Commented:
Sam,
         It didnt seem to work. I added it under user configuration > administrative emplates. If i open the add / remove templates dialog box it is there (MilitaryTime, size 1kb, modified today) but My time is still in AM/PM.

Any direction or thoughts?
0
samiam41Commented:
Interesting.  Looks like I will be testing this further.  Just to make sure I ask all the stupid questions, did you reboot this computer twice after applying the lgpo?
0
justinbilligAuthor Commented:
Twice. Not at the time but I have since restarted now 3 times and it still is AM / PM.
0
samiam41Commented:
; )  

That should be enough.  I had to ask.  Working on it now.
0
samiam41Commented:
Got stuck in our building's remodeling when it got to our server room.  Sorry for the hang up.

I am going to spend some time this morning on this and will have you a concrete answer.
0
samiam41Commented:
Ugh!  Leave it to me to make things difficult.

Forget the admin template.  Just make the following changes in your registry.  The first way is manual, the second is in script form in case you want to run it in your network.

Option 1
A.  Open registry editor (regedit) and browse to HKU > .Default > Control Panel > International
B.  When Internation is selected, on the right find the value "sTimeFormat"
C.  Change the value to HH:mm:ss (remove the tt since it relates to am/pm)
D.  If you don't want the time to show the zero (0100), just enter in H and you will get (100)

*Restart

Option 2
reg add "HKU\.DEFAULT\Control Panel\International" /V sTimeFormat /F /D "HH:mm:ss"

-I just ran it on a virtual pc and it works.  Give it a shot when you have a second.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows XP

From novice to tech pro — start learning today.