PC Review


Reply
Thread Tools Rate Thread

Accessing Remote Registries

 
 
steven chong
Guest
Posts: n/a
 
      5th Apr 2004
hi everyone,
I need to do a query into some remote registry, workstation PCs as well
as domain PCs.
Previously, i was using the native WMI COM objects like this:

objLocator = CreateObject("WbemScripting.SWbemLocator")
objService = objLocator.ConnectServer(ComputerName, "root\default", _
strUserName, _
strPassword)
objService.Security_.ImpersonationLevel = 3
objWMI = objService.Get("stdregprov")


The reason i had to move to code over to .NET is the issue's i'm having
executing that code in a multi-threaded environment. I'm doing a
recursive call over and over again to seek for a particular key in the
registry.
What is the equivalent to getting a WMI object which can read registry
using System.Management namespace? i think i can do the impersonation
using the ConnectionOptions class together with ManagementScope, but i
dont know whats the next step.

I cannot use "RegistryKey.OpenRemoteBaseKey" simply because i need to
obtain these information from workstation PC's (domain is not a problem
with impersonation).

been cracking my head with this problem for the past few days, any
suggestions?



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Checking Remote Registries for viruses/spyware Ken Franklin Microsoft Windows 2000 Registry Archive 2 12th May 2004 07:58 PM
Checking Remote Registries for viruses/spyware Ken Franklin Microsoft Windows 2000 Registry Archive 0 12th May 2004 04:19 PM
RE: Accessing Remote Registries steven chong Microsoft VB .NET 2 7th Apr 2004 01:35 AM
Accessing Remote Registries steven chong Microsoft Dot NET Framework 0 5th Apr 2004 03:11 PM
Accessing Remote Registries steven chong Microsoft C# .NET 0 5th Apr 2004 03:11 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:10 PM.