Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8107331
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T00:44:08+00:00 2026-06-06T00:44:08+00:00

I am creating a c# windows form application that goes read registry on remote

  • 0

I am creating a c# windows form application that goes read registry on remote computers.

RegistryKey regKey = RegistryKey
                        .OpenRemoteBaseKey(RegistryHive.CurrentUser, pc, RegistryView.Registry64)
                        .OpenSubKey("SOFTWARE\\ODBC\\ODBC.INI\\ODBC Data Sources");

When i run the application from USER1 it works because my remote computers are always logged in with USER1.

Now if i run it with USER2 my regKey is always equal to NULL, no matter what.

On my remote computers, in Component Services, i allowed the service : REMOTE REGISTRY.

Any ideas please ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T00:44:10+00:00Added an answer on June 6, 2026 at 12:44 am

    You cannot read HKEY_CURRENT_USER via remote registry, for the simple reason that there is no “current user” from the perspective of the remote registry service.

    For example, would it be:

    • The registry key you would see if you were logged on? (but you are not!)
    • The registry key of the current logged-on user (What if there is none? What if more than one?)

    It cannot just fetch your registry hive and load it because you may not have a roaming profile. It doesn’t want to create one just so you can look at the registry.

    So: HKEY_CURRENT_USER doesn’t return anything for remote registry service. If you are interested in a particular user you might look under HKEY_USERS.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating an application for a company that will fill form in windows
We are creating a Windows Form application (C# or VB.NET) that needs to reference
I'm creating an application (Windows Form) that allows the user to take a screenshot
Case : I'm creating an application (desktop application) with VB.NET (actually windows form), and
I'm using WPF for creating my application, I am calling a windows form using
I have a Windows form application that users can log into. The application is
I am creating a Windows form application in C# which gets a set of
For my C# Windows Form Application, I have created a flowlayoutpanel that contains several
I am creating an .Net 2.0 SP2 windows Forms Application. The form fonts looks
Creating a Windows Forms Application in C#, I have a program that I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.