Solved

How to read registry values using a limited account in XP?

Posted on 2004-09-28
4
256 Views
Last Modified: 2010-05-18
I have an application that reads some registry values. The app works fine in an Administrator account but when tried in an ordinary user account (limited), my app failed cause it can't read the registry anymore. It just gave me nothing, no errors received.

Btw, I am using the Registry classes of .NET. I have tried the permission but it didnt work.

Can someone give me a working sample? Thanks!
0
Comment
Question by:MichaelPongan
  • 2
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
eozz_2000 earned 125 total points
ID: 12177014
Are you trying to open de registryKey as writtable?
0
 

Author Comment

by:MichaelPongan
ID: 12177079
Yes. Does it matter? Here's the snippet.
Dim reg As RegistryKey = Me.GetRegKey(Me.pvtClassKey)
reg = reg.OpenSubKey(Me.pvtSectionKey, True)
ret = reg.GetValue(Me.pvtValueKey, "")
0
 
LVL 4

Expert Comment

by:eozz_2000
ID: 12180089
And... ¿if you try to put instead of Me.pvtValueKey the exact name of the value?
0
 

Author Comment

by:MichaelPongan
ID: 12186287
It worked. I just open the registrykey as readonly. Thanks!
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

743 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

11 Experts available now in Live!

Get 1:1 Help Now