Solved

Which registry hive for software configuration settings?

Posted on 2011-02-28
7
396 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 19

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
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.

 
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 78

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I hope this helps those who have been battling the SanDisk / U3 problem for a while. For anyone that is running Windows 7 64bit and is receiving and searching the internet for the “Windows Error: Windows has allocated a drive letter to the U3 dri…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
This Micro Tutorial will give you basic overview of the control panel section on Windows 7. It will depth in Network and Internet, Hardware and Sound, etc. This will be demonstrated using Windows 7 operating system.

760 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

19 Experts available now in Live!

Get 1:1 Help Now