Connect

ActiveX/VBSScript registry editor  ActiveX NT User account manager  Export MDB/DBF from ASP
Url replacer, IIS url rewrite Active LogFile  Email export  ActiveX/ASP Scripting Dictionary object
 IISTracer, real-time IIS monitor
 Huge ASP upload - upload files with progress.
          Method 
          Member of  RegEdit.Server 

Description
The Connect method establishes a connection to a predefined registry handle on another computer.
Syntax
Server.Connect ([MachineName as String = Local computer], [hKey as ReservedKeys = rkLocalMachine], [UserName as String = Empty string], [Password as String = Empty string])
 
Where Type Optional Default Description
 MachineName  String  yes  Local computer  Name of the remote computer. 
 hKey  ReservedKeys  yes  rkLocalMachine  Specifies the predefined handle of the registry on the remote computer. 
 UserName  String  yes  Empty string  Specifies a user name to be used in making the connection 
 Password  String  yes  Empty string  Specifies a password to be used in making the network connection 
Remarks
The Connect method is obsolete. It is provided only for compatibility with older versions. You should use GetKey method.
Connect uses AddConnection method if UserName/Password is defined.
Examples
 Enumerate classes on remote computer  
  'Get regedit server object
  Set S = CreateObject("RegEdit.Server")
 
  'Connect to the remote registry
  S.Connect "ComputerName", rkClassesRoot

  For Each Key In S.Keys
      Wscript.Echo Key.Name
  Next

  S.Close
See also
  Other links for Connect
Properties of Server class
Server/computer for the ActiveX regedit.
You can use GetKey method to get a specified key from the server.
Keys property returns a collection containing subkeys of a connected key (See Connect method).
Intuitive, easy to use COM interface to windows registry. Set of classes to read/enumerate/modify windows registry keys and values from ASP, VBS and T-SQL.

© 1996 – 2006 Antonin Foller, Motobit Software, help{at}pstruh.cz, help v. 1.06.2