how to access vista system remotely using vb.net?
I tried to access xp to vista system manuall开发者_C百科y, its working,but programatically how to do it ?
like,by selecting view workgroup computers in network tasks and click one computer in workgroup computers.it shows connect to "system name" window, contains username and password if i enter username and password.the seleted computer will able to access in registry otherwise i can't able to access that selected system.
how to do this manual process in vb.net coding? is it possible or not?
please help me
You can use OpenRemoteBaseKey to access the remote registry but before that you need to impersonate an account with the correct access rights using WindowsIdentity.Impersonate.
The following MSDN link contains a complete sample to login as a different user programmatically: http://msdn.microsoft.com/en-us/library/system.security.principal.windowsimpersonationcontext.aspx
精彩评论