Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Remote reg update using RegObj.dll ??

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,1029
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Remote reg update using RegObj.dll ??
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Remote reg update using RegObj.dll ?? - 5/19/2004 7:51:24 PM   
  JediK9

 

Posts: 13
Score: 0
Joined: 5/19/2004
From: Australia
Status: offline
Hi Everyone,

Just wondering if anyone has any experience with RegObj.dll ..
Looks like a great tool, but has pretty poor documentation ..

Anyway ...

I'm trying to do this:

Set objRegObj = WScript.CreateObject("RegObj.Registry")
Set objRemoteRegistry = objRegObj.RemoteRegistry("PC_NAME_HERE")

Set objValue = objRemoteRegistry.RegKeyFromString("\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft")
DataValue = 101010101
objValue.Values.Add "a", DataValue, 3
' 1 = REG_SZ, 2 = REG_EXPAND_SZ, 3 = Binary ...

However, no matter what format I set DataValue as, I keep getting a "Type Mismatch" error.

I can get String data to be written without any problem, just not BINARY data.

I've put in the following different data formats:

DataValue = "10101"
DataValue = 10101
DataValue = Array("1","0","1","0")
DataValue = Array(1,0,1,0)

but NOTHING seems to work ..

Anyway, thanks for any help you can offer ..

Cheers'
JediK9
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Remote reg update using RegObj.dll ?? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts