The Connect method establishes a connection to a predefined registry handle on another computer.
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 |
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.
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 |
Server.Keys, Server.Close, Server.hKey, Server.AddConnection
AddConnection, Close, Connect, ExpandEnvironmentStrings, GetKey, LogonUser, RevertToSelf
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 - 2009 Antonin Foller, Motobit Software | About, Contacts | e-mail: info@pstruh.cz