Login | |
|
 |
RE: Problem/Query regarding remote registry - 1/23/2007 4:38:45 AM
|
|
 |
|
| |
Country73
Posts: 735
Score: 10
Status: offline
|
Here's a different route for extracting information from a remote registry: http://www.visualbasicscript.com/fb.aspx?m=28367 I'm not a big fan of WMI and how long it usually takes to run.
|
|
| |
|
|
|
 |
RE: Problem/Query regarding remote registry - 1/23/2007 3:27:27 PM
|
|
 |
|
| |
dm_4ever
Posts: 2722
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
|
Did you do the search ebgreen suggested? You should have found "WbemScripting.SWbemLocator" object that lets you specify alternate credentials. strKeyPath = "SOFTWARE\BuildVersion" strValueName = "BuildID" Set SWBemlocator = CreateObject("WbemScripting.SWbemLocator") Set objWMI = SWBemlocator.ConnectServer(strComputer ,"root\default",strUser, strPwd) Set objRegistry = objWMI.Get("StdRegProv") objRegistry.GetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strBuildID
_____________________________
dm_4ever My philosophy: K.I.S.S - Keep It Simple Stupid Read Me: http://www.visualbasicscript.com/m_24727/tm.htm Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
|
|