Delete registry entries from the commandline

  • Section(s): Registry
  • Published on Apr 20, 2004.
  • Last Modified on Apr 20, 2004.
  • Last Modified by Wayne Maples.
  • Rated 3 out of 5 based on 6 votes.
Need a commandline utility to delete registry entries?
  • RegDel: sorry, regdel freeware utility site seems to be defunct. this leaves only Microsoft's utilities. If you have used another utility for this purpose, let me know. Wayne
  • Resource Kit utility reg

    Available starting with Supplement 2, the syntax to delete a registry value:

    reg delete HKLM\Software\Somevalue

    reg can operate on remote PCs if you have access authority using syntax

    reg delete HKLM\Software\Somevalue \\waynespc

    Download the updated version of this utility from Microsoft

    Always check Microsoft for update resource kit executables. This is not an alternative to owning the actual resource kit, but a method of keeping the executables uptodate.

  • Create a .reg file using the (minus)- syntax of regedit:
    REGEDIT4
    BLANK LINE GOES HERE
    [-HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\somekey]

    BLANK LINE GOES HERE

    See .REG files for background information on .REG files.

About Wayne Maples

Share this article


Article not looking right or info is missing? Let us know so that we can fix it: .


Receive all the latest articles by email!

Receive Real-Time & Monthly WindowsNetworking.com article updates in your mailbox. Enter your email below!
Click for Real-Time sample & Monthly sample

Become a WindowsNetworking.com member!

Discuss your network issues with thousands of other network administrators. Click here to join!

Community Area

Log in | Register

Readers' Choice

Which is your preferred network administration tool?