When it comes to managing services on Windows machines, it’s important to have the ability to quickly and easily enable and disable them. There are a variety of methods for doing this, but one of the most straightforward is to create two shortcuts that can be used to enable or disable a specific service. This article will discuss how to create two shortcuts that can be used to enable and disable any Windows service.
The first step in creating the shortcuts is to open the Services panel in the Windows Control Panel. To do this, go to the Start menu, type “services” into the search box, and then select the Services panel from the results. Once the Services panel is open, locate the service that you would like to enable or disable and select it from the list.
Right-click on the service that you have selected and select Properties from the context menu. This will open a window with a few different tabs. Select the General tab and then take note of the Service name and the Path to executable for the service. You will need both of these pieces of information for creating the shortcuts.
Once you have the information you need, open a new File Explorer window and navigate to the folder where you would like to save the two shortcuts. Right-click in the folder, select New, and then select Shortcut. This will open a window with a few options. In the Type the location of the item field, enter the following command and then click Next:
sc.exe start [service name]
Replace [service name] with the Service name that you took note of in the previous step. This command will enable the service. In the next window, enter a name for the shortcut and click Finish.
To create the second shortcut to disable the service, repeat the steps above, but use the following command in the Type the location of the item field:
sc.exe stop [service name]
Again, replace [service name] with the Service name that you noted in the previous step. This command will disable the service. Enter a name for the shortcut and click Finish.
Once you have created both shortcuts, you can double-click them to enable or disable the service without having to open the Services panel. You can also assign keyboard shortcuts to the shortcuts to make the process even faster. To do this, right-click on the shortcut, select Properties, select the Shortcut tab, and then enter the shortcut key in the Shortcut key field.
In conclusion, creating two shortcuts to enable and disable any Windows service is a quick and easy way to manage services on Windows machines. All you need to do is open the Services panel, locate the service you would like to enable or disable, take note of the Service name and Path to executable, create two shortcuts using the sc.exe command, and then assign keyboard shortcuts to the shortcuts if desired. With these two shortcuts, you can quickly and easily enable or disable the service.