Solved

registry problem

Posted on 2002-05-10
7
137 Views
Last Modified: 2010-05-02
Hi All;

Running XP with administrative rights and two limited users on a stand alone computer. I have a small program that I run for the whole system (administrator and all users). Getting the program to run is no problem as I list it in the registry under "HKEY_LOCAL_MACHINE using the run key" so that it runs each time the computer is booted or a user logs on.

My problem is that the program has an "input box" that requires everyone to type in some information. This information is stored in the registry as such "HKEY_LOCAL_MACHINE software\myinfo".

When I run the program as an administrator I don't have a problem with the program running or my entering in the information and having the registry make sure it is correct. Once another user is logged on with a limited account, the program runs but doesn't check for the information in the registry ?

My Question is: Where should I place information in the registry for limited accounts so that they too must enter information when my program runs and then have the registry confirm this information (query) ?

Seems to me that it should be possible since my program will run each time the computer boots or someone logs on whether a limited account or not.

Thanks in advance

stnic
0
Comment
Question by:stnic
7 Comments
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7002765
I don't have XP but in NT, you could grant access to registry values stored in HKEY_LOCAL_MACHINE to specific key to specific users.
Take a look at Article ID: Q153183 from MSDN for a clue.
0
 
LVL 28

Expert Comment

by:vinnyd79
ID: 7002766
Put it in HKEY_CURRENT_USER
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7002768
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 16

Accepted Solution

by:
Richie_Simonetti earned 200 total points
ID: 7002770
0
 
LVL 22

Expert Comment

by:Mohammed Nasman
ID: 7002928
Hello

  To access the registry key "HKEY_LOCAL_MACHINE" you have to be Administrator or have adiminstrator privilege, this is cuz the security of win nt/2000/XP

if you want the users to access the registry use the "HKEY_CURRENT_USER" instead of "HKEY_LOCAL_MACHINE"

cuz all users could read and read to the "HKEY_CURRENT_USER" key

Best regards
Mohammed Nasman
0
 

Author Comment

by:stnic
ID: 7269083
Hey Thanks for the links, just what I needed! Sorry it took so long to get back, they were having problems on this site and I couldn't accept the comment!

stnic
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7270221
Thanks for "A" grade.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

911 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

16 Experts available now in Live!

Get 1:1 Help Now