How To Make A Program Run As A Service Windows 10
If you want to run an awarding as a Service in Windows Os, and so keep reading this tutorial. As you know, the common methods to run a plan at Windows Startup is to place the program at Windows Startup folder, or to run the program at startup past using the Windows Registry, or to outset the awarding using the Task Scheduler. Although these methods are effective in virtually cases, in some cases at that place is a demand to run an application at startup as a Windows service, earlier user's login or user'south interaction.
This tutorial contains step-by-step instructions on how to create a Windows service with whatever programme in Windows 10, eight, 7 & Server Bone.
How to Run Whatsoever Application every bit a Windows Service.
Method 1. Run Application equally Windows Service by using RunAsService utility.
Method ii. Run Program as Service past using NSSM utility.
Method 1. How to run any application as a Windows Service with 'Run As Service' Utility.
The first method to create a user-divers service from whatever program is to use the "RunAsService" utility.
1. Download the RunAsService tool to your PC.
2.Motility or Copy the downloaded file RunAsService.exe, to the root folder of drive C:\. *
* Note (Important): Y'all can place the "RunAsService.exe" tool to any location yous want on the deejay, just make sure to proceed the tool in the aforementioned location in order the installed service(southward) to go on performance.
three. Open up Command Prompt every bit Administrator.
4. In the command prompt blazon: cd\
5. Now install the awarding you lot want as a service, by using the following control: *
- RunAsService install "ServiceName " "Brandish-Proper noun" "PathToExecutable"
Notes:
1. In the to a higher place control replace the values in red letters as follows:
Proper name: Type a Proper name for the Service you want to create. You tin can use the Service Name to start or stop the service manually on the future by giving the "net start" or "net finish" commands.
Display Proper name: If you desire, type a different Name for the Windows Services list. This is how the service name will be displayed in the services list. If no "Display Proper noun" is specified, and so the Display Name will be the same as the "ServiceName" of the service you create.
PathToExecutable: Type the total path of the application that you want to run equally a Windows service.
For instance: To install the "Notepad.exe" application as a Windows service with the name "Notepad", give the following command:
- RunAsService install "Notepad" "C:\Windows\System32\notepad.exe"
2. If subsequently executing the to a higher place command you receive the message "An app needs the .Net Framework 2.0 feature to work", click Download and install this characteristic, or download the .Net Framework 2.0 from the Microsoft download center.
6. Later on the command execution, a new Windows Service will appear in the services list, with the proper name y'all specified in the "RunAsService" control. To run the newly created service at startup:
a. Right-click on the service and choose Properties.
b. Ensure that the Startup blazon is set to Automatic.
c. Restart your PC, to test the service. *
* Notes:
1. You can get-go or end the service at any time you want, by running the "net get-go" or the "internet cease" commands in Command Prompt (Admin).
2. If you want to uninstall the installed service in the future:
a. End the service by running this command in Admin Command Prompt:
- cyberspace terminate "ServiceName"
e.g. net stop "Notepad"
b. Uninstall the service by giving this command:
- RunAsService uninstall "ServiceName"
e.k. RunAsService uninstall "Notepad"
Method 2. How to run whatever programme as a service by using NSSM.
The second method to run any awarding equally a service in Windows, is past using the Non-Sucking Service Managing director tool.
1. Download NSSM.
two. Extract the downloaded Nada file.
3. Rename the extracted binder (due east.k. "nssm-2.24"), to NSSM.
4. Copy the NSSM folder to the root folder of drive C:\
5. Open Control Prompt equally Ambassador and navigate to the NSSM folder, by typing the following commands in club (Printing Enter afterward typing each command):
- cd\
- cd nssm
vi. Now according to your Windows version (32 or 64bit), navigate to the one of two contained subfolders, by type the corresponding command (and printing Enter).
- If yous own 64Bit Windows, blazon: cd win64
- If you lot own 32Bit Windows, type: cd win32
7. Now blazon the following command: *
- nssm install
8. In the window that opens:
8a. Printing the tree (3) dots button side by side to PATH and select the application'south executable that you lot want to run as a service.
8b. When done, type a Name for the new service and click Install service.
8c. Click OK to the bulletin "Service installed successfully" and you're washed! *
* Notes:
one. After installing the service with the NSSM service installer, a new Windows Service will appear in the services list, with the proper name you specified in the Service name, than can be managed as whatever other Windows service.
2. To uninstall the service in the future:
a. Follow the steps 5 & vi above, so blazon the following command: *
- nssm remove ServiceName
* Note: Where ServiceName = the proper name of the service y'all created, using the NSSM utility.
east.g. nssm remove NOTEPAD in this example.
b. Finally click Yes to Remove the service.
That'southward it! Permit me know if this guide has helped you by leaving your comment most your feel. Please like and share this guide to help others.
If this article was useful for you, delight consider supporting us by making a donation. Fifty-fifty $ane tin can a brand a huge difference for us in our attempt to continue to help others while keeping this site free:
If y'all want to stay constantly protected from malware threats, existing and hereafter ones, we recommend that you install Malwarebytes Anti-Malware PRO past clicking below (we do earn a commision from sales generated from this link, just at no additional toll to you. We have experience with this software and we recommend it considering it is helpful and useful):
Full household PC Protection - Protect up to 3 PCs with NEW Malwarebytes Anti-Malware Premium!
Source: https://www.wintips.org/how-to-run-an-application-as-service/
Posted by: changthatera1965.blogspot.com
0 Response to "How To Make A Program Run As A Service Windows 10"
Post a Comment