• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 447
  • Last Modified:

Which registry hive for software configuration settings?

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
tcianflone
Asked:
tcianflone
1 Solution
 
Daniel Van Der WerkenIndependent ConsultantCommented:
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
 
slingoCommented:
You should load up the .DEFAULT hive ideally - NB this is NOT the same as the default profile on the machine :-)
0
 
Adam LeinssCommented:
Isn't .DEFAULT for the system account?  Why would you use .DEFAULT verus HKCU?
0
Granular recovery for Microsoft Exchange

With Veeam Explorer for Microsoft Exchange you can choose the Exchange Servers and restore points you’re interested in, and Veeam Explorer will present the contents of those mailbox stores for browsing, searching and exporting.

 
tcianfloneAuthor Commented:
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
 
slingoCommented:

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
 
David Johnson, CD, MVPOwnerCommented:
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
 
tcianfloneAuthor Commented:
Article was the most helpful one posted but could have used additional info.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now