computing
  • 1

Solved Delete Protected Sub Registry Key With Batch File

  • 1

Hi

Trying to delete the following registry key with a batch file but I can’t even delete in the registry editor. Any ideas on how to write a batch file to do it, maybe it need to change permission also.

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\SWD\PRINTENUM\

There are about 8 sub keys under PRINTENUM such as {1974F44D-A278-……} that I want to be deleted.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\SWD\PRINTENUM

Same as above.

Thank you in advance if anyone can help me with a script.

Share

1 Answer

  1. For individuals it is:
    [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\SWD\PRINTENUM]
    “first one”=-
    “second one”=-

    …and so on for each sub-key. The path to PRINTENUM remains in place.

    EDIT:
    See also this:
    http://www.windowsnetworking.com/kb…

    Always pop back and let us know the outcome – thanks

    message edited by Derek

    • 0