Editing the Registry from the Command Line

All editions of Windows Vista include Reg.exe (sometimes called the Console Registry Tool), a command-line tool that enables you to perform registry operations without using Registry Editor. By incorporating Reg.exe commands in batch programs or scripts, you can automate registry activities, as well as take conditional actions based on the state of a local or remote registry. For example, you can query a registry value and then edit that value (or take another action) if the data meets some criterion. Virtually the entire feature set of Registry Editor is available in Reg.exe (one exception: the Export operation in Reg.exe exports Unicode .reg files only). And you can do at least one thing in Reg.exe ...

Get Windows Vista® Inside Out Deluxe Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.