How batch Deletes registry health value method

Source: Internet
Author: User

Delete the registry health value code with the batch process, the friend you need can refer to the following.

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 Rootkeysubkey

Rootkey [HKLM | HKCU | HKCR | HKU | HKCC]

Subkey The full name of the registry key under the selected ROOTKEY.

VALUENAME The name of the value to delete under the selected item.

When omitted, all subkeys and values under the item are deleted.

/ve deletes the value of a blank value name (default).

/va deletes all the values under the key.

/f Force delete without prompting.

For example:

REG DELETE hklmsoftwaremycomyapptimeout/f

Delete the registry key Timeout and all its subkeys and values, forcibly delete without asking

REG DELETE zodiachklmsoftwaremyco/v MTU

Remove the registry key MTU under MyCo on ZODIAC

********************************************************************************************

Delete entries in the registry

Windows Registry Editor Version 5.00

[-hkey_local_machine "SOFTWARE" Microsoft Windows "CurrentVersion" Run]

Save As reg file Double click to remove this item

Note that there is a "-" number

Delete values from the registry

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE "SOFTWARE" Microsoft Windows "CurrentVersion" Run]

"Soundman" =-

This allows you to delete this value

Start/disable of service

Type corresponding registry [HKEY_LOCAL_MACHINE ' SYSTEM ' CurrentControlSet ' Services]

Each of the following subkeys

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: You need to force the process to terminate when necessary

XP Pro can select the Taskkill command, which can be used at the command line via Taskkill/? View detailed Help

e.g. terminate Notepad: Taskkill/im notepad.exe/f

/F means mandatory termination

There is no Taskkill command under the home version, only the Tskill command, function will

e.g. terminate Notepad: Tskill notepad

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.