Reading registry info from a remote machine 
Author Message
 Reading registry info from a remote machine

Hi
I'm trying to read registry information from a remote
machine on our network.
The code I've got now is for reading a key from the local
registry. How do I need to change it to read this key on a
machine called "Machine1"?

HKLM = "HKEY_LOCAL_MACHINE\"
HKLM_SP = HKLM & "Software\Microsoft\Windows
NT\CurrentVersion\"
Set shell = CreateObject("WScript.Shell")
SP = shell. RegRead(HKLM_SP & "CSDVersion")

Thanks
Nic



Sun, 08 Aug 2004 21:47:47 GMT  
 Reading registry info from a remote machine
Figured it out:

Set objRegistry = CreateObject("RegObj.Registry")
set objReg = objRegistry.RemoteRegistry("Machine1")
set objRegKey = objReg.RegKeyFromString
("\HKEY_LOCAL_MACHINE\Software\Microsoft\Windows
NT\CurrentVersion\")
ComponentCheck = objRegKey.Values("CSDVersion").Value

Quote:
>-----Original Message-----
>Hi
>I'm trying to read registry information from a remote
>machine on our network.
>The code I've got now is for reading a key from the local
>registry. How do I need to change it to read this key on
a
>machine called "Machine1"?

>HKLM = "HKEY_LOCAL_MACHINE\"
>HKLM_SP = HKLM & "Software\Microsoft\Windows
>NT\CurrentVersion\"
>Set shell = CreateObject("WScript.Shell")
>SP = shell. RegRead(HKLM_SP & "CSDVersion")

>Thanks
>Nic
>.



Mon, 09 Aug 2004 00:22:16 GMT  
 Reading registry info from a remote machine
Reference the post below:

Message 4 in thread

Subject: Re: Read Remote Registry
Newsgroups: microsoft.public.scripting.VBScript
View this article only
Date: 2001-08-14 03:41:37 PST

Hi

You can use WMI StdRegProv (Standard Registry Provider) and the
(Microsoft) RegObj.dll

TIP1: Before asking questions that most possible has been asked before,
do a newsgroup search.
You can use http://groups.google.com/advanced_group_search to search in
a news database having articles dated back to all the way to 1995.

TIP2: When you have the Google search results in a browser window, drag
and drop each thread (the link that says "View Thread" in a ANOTHER
browser window.

For your question:

Fill in the following words in the "Find messages with all of the words"
field:  modify registry remote

Fill in *scripting in the Newsgroup field to narrow down the search to
the scripting groups only!

Then read and learn :-)

Regards,
Torgeir

Hope it helps.

Regards,
Robin

This posting is provided AS IS, with no warranties, and confers no rights.



Tue, 10 Aug 2004 17:32:19 GMT  
 Reading registry info from a remote machine
You can also consider use WMI instead of other objects. Try to search
google at http://groups.google.com/advanced_group_search for former
discussions first.

Hope it helps.

Regards,
Robin

This posting is provided AS IS, with no warranties, and confers no rights.



Fri, 13 Aug 2004 15:08:12 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Reading registry on remote machine

2. Reading the registry on remote machines

3. WshController: Remote script runs only on local machine not on remote machine

4. How to edit registry on remote machines with VBS

5. Access the registry of a remote NT 4.0 machine

6. registry key update to a remote machine

7. Edit Registry on remote machine

8. Edit registry settings on a remote machine

9. Registry On a Remote Machine

10. WMI Applications Querying Registry on remote machines

11. Create registry on remote machine: please help

12. Registry On a Remote Machine

 

 
Powered by phpBB® Forum Software