Sep 15, 2014
How do I enable services on a Windows computer via a I believe the command you are looking for is: sc config servicenamehere start= auto. You'll need to know the name of the service though - to view this from the command line, try this command - this will show all services: sc query type= service state= all. If you want to see only stopped services, run this command: sc query type= service state= inactive Sc.exe create | Microsoft Docs The following examples show how you can use the sc.exe create command: sc.exe \\myserver create NewService binpath= c:\windows\system32\NewServ.exe sc.exe create NewService binpath= c:\windows\system32\NewServ.exe type= share start= auto depend= +TDI NetBIOS Additional References. Command-Line Syntax Key; Related Articles How to Run Any Program as a Background Service in Windows
Manually reset Windows Update components - Windows Forum
Apr 17, 2018
From the Start menu, select the Windows PowerShell directory, then select Windows PowerShell. Access the directory where your project's compiled executable file is located. Run the New-Service cmdlet with the with your project's output and a service name as parameters: PowerShell. How To Create a User-Defined Service