Solved

Which registry hive for software configuration settings?

Posted on 2011-02-28
7
418 Views
Last Modified: 2012-05-11
Can anyone point me to a definitive article or two that details which registry hive I should be writing configuration settings for my .NET software to? I want a regular user to be able to make configuration changes without have to log in as an administrator. This is more of an issue under Win 7; under XP we used to write everything to HKLM\Software, but this is not working under Win 7. And what's the difference between the hive I would use for a client program versus what I would use for a service? Thanks!
0
Comment
Question by:tcianflone
7 Comments
 
LVL 20

Expert Comment

by:Daniel Van Der Werken
ID: 34998660
http://support.microsoft.com/kb/256986

You should be able to use HKCU fine as long as you're okay with the settings being user specific.
0
 

Expert Comment

by:slingo
ID: 34998946
You should load up the .DEFAULT hive ideally - NB this is NOT the same as the default profile on the machine :-)
0
 
LVL 22

Expert Comment

by:Adam Leinss
ID: 34999188
Isn't .DEFAULT for the system account?  Why would you use .DEFAULT verus HKCU?
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 1

Author Comment

by:tcianflone
ID: 35039248
We experimented some with this. If we put the config setttings in HKCU, each user has to configured the software individually. This is not acceptable for our environment. If we put them in HKLM\Software, then they are the same for all users, BUT a user cannot make any config changes in Win 7. In Win 7, it looks like you have to log in as the local machine admin (not just a domain admin) to set config with them stored in HKLM\Software. Is that the intended security scheme for Win7? In Win XP, users could make config changes in this same scenario.
0
 

Expert Comment

by:slingo
ID: 35040256

I'm afraid I know nothing about Windows 7. My experience of Microsoft is don't touch their new OS's for the first couple of years!

Sorry I can't help.
0
 
LVL 79

Accepted Solution

by:
David Johnson, CD, MVP earned 500 total points
ID: 35040336
yes that is what you have to do.. as Vista/Win7 will virtualize hklm and it will in fact be written to hkcu

here is an article that you might find interesting http://www.registryonwindows.com/registry-security-2.php
0
 
LVL 1

Author Closing Comment

by:tcianflone
ID: 35083225
Article was the most helpful one posted but could have used additional info.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
OfficeMate Freezes on login or does not load after login credentials are input.
This Micro Tutorial will go in depth within Systems and Security in Windows 7 and will go into detail regarding Action Center, Windows Firewall, System, etc. This will be demonstrated using Windows 7 operating system.
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

777 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