PC Review


Reply
Thread Tools Rate Thread

Adding/changing registry keys

 
 
Michelle
Guest
Posts: n/a
 
      10th May 2010
I used to do stuff periodically with registry keys from Excel. Are there any
issues with more modern versions of Windows and permissions?

Are there areas of the registry that I can use/can't use

Does a user have to have administrator rights for my code to write to the
registrty?

Thanks

M

 
Reply With Quote
 
 
 
 
Chip Pearson
Guest
Posts: n/a
 
      10th May 2010
Broadly speaking, you should restrict yourself to the
HKEY_CURRENT_USER region of the registry. Leave LOCAL_MACHINE and
CLASSES_ROOT alone and let Windows or other applications use those
regions. If you screw up the registry, it is much easier to fix things
up in CURRENT_USER than in CLASSES_ROOT. CURRENT_USER is basically a
hybrid of LOCAL_MACHINE and USERS that is built when you log on to
Windows.

You should have sufficient permissions without admin rights to modify
CURRENT_USER and most of LOCAL_MACHINE.

I have code that wraps up all the Windows registry API functions and
types into nice neat VBA-friendly procedures at
http://www.cpearson.com/Excel/Registry.htm . I also have a compiled
DLL of VBA-friendly registry functions at
http://www.cpearson.com/Excel/RegistryWorx.aspx .


Cordially,
Chip Pearson
Microsoft MVP 1998 - 2010
Pearson Software Consulting, LLC
www.cpearson.com
[email on web site]




On Mon, 10 May 2010 16:12:22 +0100, "Michelle"
<(E-Mail Removed)> wrote:

>I used to do stuff periodically with registry keys from Excel. Are there any
>issues with more modern versions of Windows and permissions?
>
>Are there areas of the registry that I can use/can't use
>
>Does a user have to have administrator rights for my code to write to the
>registrty?
>
>Thanks
>
>M

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Basic(?) question about adding registry keys in XPe =?Utf-8?B?U2FuamF5IFNS?= Windows XP Embedded 3 9th May 2007 02:08 PM
Access Denied To Changing Registry Keys quirkyjoe Windows XP Help 1 1st Sep 2006 03:38 AM
Changing registry keys remotely Bill Windows XP General 0 24th Aug 2004 05:14 PM
Adding / changing registry keys via GPO's _M_ Microsoft Windows 2000 Group Policy 5 8th Jan 2004 08:50 PM
Adding Registry Keys via GPO's Todd Smola Microsoft Windows 2000 Group Policy 1 1st Oct 2003 04:50 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:29 AM.