Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to delete registry health values with batch processing

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report