Home Forums Tech Windows Deleting Registry keys and values with REG file

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #2316
    Mr. Mangus
    Participant

    Usually we are using REG files to add or replace things in registry.

    Do you realize that we can delete registry keys and even values by using this interesting trick.

    To delete a value:

    ; This will delete "DeleteMe" string value
    [HKEY_LOCAL_MACHINESYSTEM To-Delete]
    "DeleteMe"=-

    To delete a key:

    ; This will delete "To-Delete" key
    [-HKEY_LOCAL_MACHINESYSTEM To-Delete]

    Sources:

    http://support.microsoft.com/kb/310516

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.