In "Registry Reading and Writing Made Simple, Part 1" (October 2005, InstantDoc ID 47540), I introduced you to the Penton.RegObject object. With this object, you can easily handle Windows Management Instrumentation's (WMI's) StdRegProv class methods. As I mentioned in Part 1, you can use the Penton.RegObject object in both VBScript and JScript code, so now let's look at how you can use it to read and write registry values in both scripting languages. However, before you can use the Penton.RegObject object, you need to register the RegObject.wsc component.
Registering and Unregistering the Component
You need to register RegObject.wsc so that your scripts can create the Penton.RegObject object. The registration process adds the component's globally unique identifier (GUID) and programmatic identifier (ProgID) to the registry. You must be logged on as a member of the Administrators group to register or unregister RegObject.wsc on your system. . . .

