Thanks so much... It was far easier than I would have expected! You
guys are a LIFE SAVER!
Here's the template I'm using....anyone else who needs to access a
remote system registry, this works and it's very fast.
Private Sub Q2()
Dim remotepc
remotepc = Host.Text
Dim MyVal As String
Dim oRegH As RegistryKey
Dim RegWord As RegistryKey
Dim ReturnVal As String
oRegH =
RegistryKey.Ope nRemoteBaseKey( RegistryHive.Lo calMachine, remotepc)
RegWord = oRegH.OpenSubKe y("Software\Mic rosoft\Windows
NT\CurrentVersi on")
MyVal = RegWord.GetValu e("RegisteredOw ner")
WMIResults.Item s.Add(MyVal)
End Sub
On 20 Jan 2004 18:58:21 +0100,
hi************* **@gmx.at (Herfried K.
Wagner [MVP]) wrote:
* Steve Montgomery <ma*********@ya hoo.com> scripsit: Does anyone have a sample block of code they can share for checking a
DWORD value on a remote network machine's registry? For example, to
validate a patch deployment.
MSDN has a great sample for access the local registry bur I'd like to
mount several remote registry to check a specific key for a DWORD
value.
<http://www.google.de/groups?as_q=rem ote%20registry% 20WMI%20dotnet& ie=UTF-8>