| 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 |
| ||
'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 |