Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to get the default system locale in Windows 7, I figured out that the login screen uses this. So I want to start one application during system startup, before the login screen appear. So that the result I get is user independent. Please let me know if any have pointers...

share|improve this question
Can't you just log which user is logged in and save your data for that given user? Or store the data in their profile folder? – Ivo Flipse Feb 11 '10 at 8:07
My application must return me System default locale during startup.. So i need the application to run on startup. – Santhosha Kaldambe Feb 11 '10 at 8:24
It would be added to the proper HKLM registry run… – Moab Apr 1 '11 at 15:40

You don't necessarily need to run this from the login screen, an example:

systeminfo /FO LIST | find "System Locale"

A Developer alternative can be found here: MSDN - GetSystemDefaultLocaleName

This result will be user independent!

Don't use a service just to get that value, services are meant to be long-running tasks.

Don't use credential providers either, they are used as authentication methods.

share|improve this answer

I do know Windows 7 introduces Trigger Startup Services which allows you to start services without requiring a user to log into the console. Hopefully this might point you in the right direction:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.