Represents one value from windows registry
VBS does not have functions to work with native binary data (VT_UI1 | VT_ARRAY). We can use multibyte string functions to handle binary registry values in VBS.
| Value - Represents one value from windows registry (Item property, Returns a single Value object from the Values collection.) |
| Binary | Returns or sets the value as a binary data - safearray of bytes. | |
| Delete | Removes the value from the specified registry key. | |
| Key | Key containing this value. | |
| SetValue | Sets valueand type to the specified registry value name. |
| Name | The name of the value. |
| String, RW | |
| Type | Type of the registry value. |
| ValueType, RW | |
| Value | Value of the registry value. |
| Variant, RW | |
| Expanded | Expanded string value. |
| String, RO |
Export one registry key on local or remote machine using vbs command line script |
Set content type for .asa |
Set S = CreateObject("RegEdit.Server")
S.GetKey("HKCR\.asa").Values("Content Type")="text/asp" |
List of shell extensions. |
'Get RegEdit.Server object
Set S = CreateObject("RegEdit.Server")
Set Key = S.GetKey("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved")
For Each Value In Key.Values
Wscript.Echo Value.Value
Next |
Server, Keys, Key, Values, Value
ValueType, ReservedKeys, LogonTypes, AccessRights
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