Discussion Locked

Edit registry from a command prompt?

0 helpful
9 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
How can I edit the Win95/98 registry from a command prompt? (ie. If I lock myself out of a wrkstn with policies and need to boot from floppy, run poledit from floppy, and edit the registry without using the Windows GUI).

9 replies

by hard hat harry

The WinNT resource kit has all sorts of command line tools for querying or editing the registery so I can only assume that the Win95 resource kit has similar tools.

by computerdude

If you know exactly what you need to edit, you could create a regfile and put it on the boot disk. Then after you boot with the disk you could run regedit.exe from the command prompt with the regfile as the parameter. This will merge the the file you created into the registry. I have run this on 95/98 with success.

Hope this helps,
Dave

by tmaclennan

The Dude is right. Here is an example. Create a file called TEST.REG with these lines in it:
REGEDIT4

[HKEY_USERS\.Default\Software\Microsoft\Internet Explorer\Main]
"Start Page"="https://www.techrepublic.com"

To run the file from the commandline, type:
REGEDIT test.reg

This merges the file, and your new default home page is at TR.

The easiest way to create a .REG file is to go to another machine, edit the registry, choose the key you need, and "Export Registry File".

This discussion is closed to new replies.