How to manually add/remove WINDOWS7/XP services

Source: Internet
Author: User

Windows xp/vista/windows 7, but Windows 8 Preview is temporarily unable to test through.

First, install Windows services manually
1, use the. NET Framwork tool InstallUtil
The tool version is related to the version of the. NET Framework installed by the current system (path is c:/windows/microsoft.net/framework/), or it may be 2.0, 3.0, 4.0, and can be used.

For example: c:/windows/microsoft.net/framework/v4.0.30319

Execute under the cmd command line:

InstallUtil.exe "C:/Program Files/mypro/test.exe"

To delete a service command:

Installutil.exe-u "C:/Program Files/mypro/test.exe"

2. Create service with SC command
The command format is as follows

SC create [service name] [binpath=] <option1> <option2>

Like what:

SC create newservicename binpath= "C:/Program Files/mypro/test.exe"

Create a service named Newservicename for Test.exe.

Ii. manual removal of Windows services
The most common method is to use the SC command, the file in C:/windows/system32/sc.exe, the current SC command, in addition to testing the forced deletion of the running service on Windows 8 will cause the reboot (possibly because it is the preview version), There is no problem with other versions of Windows.

Use the following methods:

1, run cmd command line
Click on the Start menu in the lower left corner, enter CMD in the "Search programs and Files" text box, and then right mouse button to admin

2. Perform SC delete delete command
Enter Delete Service command

SC Delete ServiceName

Where the servicename represents the service name that needs to be removed, and if the service name contains spaces, the servicename must be enclosed in double quotes.

Perform as shown:

[SC] DeleteService success

The following figure:

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.