Home > Software engineering >  How to delete a keyword in the registry of all the values?
How to delete a keyword in the registry of all the values?

Time:09-23

Due to be included in a software company's red list, need to immediately uninstall some software, and the item with the key in the registry, eliminated value, uninstall the software, its residual keyword in the registry program has as many as 1000, master looked to see if I can use the script to delete the registry contains all aaa keywords and key value,

CodePudding user response:

C: & gt; reg/?

REG Operation [Parameter List]

Operation [QUERY | ADD | DELETE | COPY |
The SAVE | LOAD | UNLOAD | RESTORE |
COMPARE | EXPORT | IMPORT]

Return code: (with the exception of REG COMPARE)

0 - success
1 - failure

To get help about an action, please type:

REG Operation/?

For example:

REG QUERY/?
REG the ADD/?
REG the DELETE/?
REG the COPY/?
REG the SAVE/?
REG RESTORE/?
REG the LOAD/?
REG the UNLOAD/?
REG the COMPARE/?
REG the EXPORT/?
REG the IMPORT/?

CodePudding user response:

C: \ & gt; reg delete/?

REG the DELETE KeyName [/v ValueName | | of ve/va] [/f]

KeyName [\ \ Machine \] FullKey
Machine remote Machine name - ignore the default value of the current Machine,
On a remote machine in registry key HKLM and the city, only
FullKey ROOTKEY \ SubKey
In registry key HKLM | ROOTKEY [HKCU | HKCR | to the | HKCC]
SubKey selected ROOTKEY registry entries under the name,
ValueName under the option to delete the name of the value of the
Omitted, all under the items and the value will be deleted,

/ve delete blank value name value (the default),

/va delete all values under the,

/f without prompt forcibly removed,

For example:

REG in registry key HKLM \ Software \ DELETE MyCo \ MyApp \ Timeout
Delete registry keys Timeout and all its children and value

REG the DELETE the information in registry key HKLM \ Software \ \ over \ \ MyCo/v MTU
Delete the ZODIAC on MyCo under registry entries MTU

CodePudding user response:

Try to use registry cleaning tools,

I am afraid, if not, just write the code for processing,
Pay attention to the "characteristics", judge logic must be tight, otherwise it may cause mistaken delete,
  • Related