Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading Remote Registry using C#

Status
Not open for further replies.
Oct 9, 2003
2
US
Maybe I am just looking in all the wrong places, but I can find an example of reading a remote registry.

I have seen plenty of exampels about reading the local registry, but I need to specifically connect to a remote computer.

In the end, I am going to need to read the registry and make some WMI calls and I will need to do this from outside the domain and passing in credentials.

I have figured out that I can use "RegistryKey.OpenRemoteBaseKey" but that only works if I have rights. How can I pass credentials when I try to open the remote registry?

Thanks...
 
On a remote compuetr you should have a remote server which will do it. You will send only the command from the client, and server will interpret your data, like you implement it, and will execute anything you want.

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
Maybe, I don't understand what you are suggestion.

But if I run the my app from computer A which is in Domain A and I am trying to read information from a computer in Domain B (Domain A and B have no trust or associated whatsoever) then using "RegistryKey.OpenRemoteBaseKey" will fail due to permissions problems.

I need to know how to "pass" the Domain B credentials to the remote server.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top