开发者

Accessing Remote Registry of Windows 7 and Server 2008 through C#

I've been searching for a way to access a Remote Registry of a computer in my Network ( no domain configured ) but failed several times.

Only way I can successfully get access is previously going to regedit and connect to it trought it ( which will ask me to enter user and password ) and then try to do it in my program.

Seems to be a problem with credentials, but I've failed on searching a way to programati开发者_如何学JAVAcally do this in my code.

Regards, Marco.


You have to establish the network connection with proper credentials. Sure manually doing a remote registry first will establish this but if you want to establish this in code use this class.

C# Class to establish a network connection with credentials

By the way, we use this to do exactly what you are asking, access remote registry. We establish a connection using creds that have remote registry rights and then we get some remote registry values.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜