How to delete registry health values with batch processing
This article is about how to use batch processing to delete registry key values. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
A basic format reference
Reg delete KeyName [/ v ValueName | / ve | / va] [/ f]
KeyName [\\ Machine\] FullKey
Machine remote machine name-ignores the default value of the current machine.
There are only HKLM and HKU on the remote machine.
FullKey ROOTKEY\ SubKey
ROOTKEY [HKLM | HKCU | HKCR | HKU | HKCC]
The full name of the registry key under the ROOTKEY selected by SubKey.
The name of the value to be deleted under the ValueName option.
When omitted, all subitems and values under this item are deleted.
/ ve removes the value of the blank value name (default).
/ va deletes all values under this item.
/ f forcibly delete without prompting.
For example:
REG DELETE HKLM\ Software\ MyCo\ MyApp\ Timeout / f
Delete the registry key Timeout and all its subkeys and values, and forcibly delete them without asking
REG DELETE\\ ZODIAC\ HKLM\ Software\ MyCo / v MTU
Delete the registry key MTU under MyCo on ZODIAC
*
Delete an entry in the registry
Windows Registry Editor Version 5.00
[- HKEY_LOCAL_MACHINE "SOFTWARE" Microsoft "Windows" CurrentVersion "Run]
Save as reg file double-click to delete this item
Notice that there is a "-" sign.
Delete values in the registry
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE "SOFTWARE" Microsoft "Windows" CurrentVersion "Run]
"SoundMan" =-
This removes this value.
Start / disable the service
Type corresponds to the registry [HKEY_LOCAL_MACHINE "SYSTEM" CurrentControlSet "Services]
Each sub-item under
The start key under the service name indicates the startup type
1 is the system
2 is automatic
3 is manual
4 is disabled
Ps: if necessary, the process needs to be forcibly terminated
You can choose taskkill command under XP Pro, and you can use taskkill /? on the command line. View detailed help
E.g. Termination notepad: taskkill / IM notepad.exe / F
/ F means compulsory termination.
There is no taskkill command under the Home version, only the tskill command, the function will be like
E.g. Termination notepad: tskill notepad
Thank you for reading! This is the end of this article on "how to use batch processing to delete registry health values". I hope the above content can be of some help to you, so that you can learn more knowledge. If you think the article is good, you can share it for more people to see!