Get the value from registry using

Posted on 2012-09-06
Last Modified: 2012-09-06
When i try to get the value from Current_user registry settings the below code is fine on my window7 machine.

regKey = Microsoft.Win32.Registry.CurrentUser.OpenSubKey("Software\PTS Tools", True)-OK

But if i use same code for LOCAL_MACHINE it is not working and  it is giving error that SecurityException was un handled

regKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey("Software\PTS Tools", True)-Not OK

Can you please provide the solution to read LOCAL_MACHINE registries using VB.Net
Question by:keschuster
    LVL 12

    Accepted Solution


    Author Closing Comment

    I found my solution from below link

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    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.

    Suggested Solutions

    Flash ( has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
    For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK ( for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    779 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

    21 Experts available now in Live!

    Get 1:1 Help Now