How to make two shortcuts: Enable+Start service & Disable+Stop any windows service?



IT administrators often need to manage services on Windows machines, such as enabling or disabling them and starting or stopping them. This can be done manually through the Services Manager, but it is much more efficient to use shortcuts to quickly enable or disable a service. In this article, we will explain how to create two shortcuts, one to enable a service and one to disable a service, for any Windows service.

Creating Shortcuts

The first step to creating the shortcuts is to open the Services Manager. To do this, press the Windows key and type “Services” in the search box. Then, right-click the Services icon and select “Run as administrator.” This will open the Services Manager window.

Once the Services Manager is open, scroll through the list of services until you find the service you want to manage. Right-click the service, then select “Properties.” This will open a window with several tabs. Select the “General” tab, and then click the “Path to executable” field. This will open a window with a field for a path to the executable for the service. Copy the path and paste it into a text editor, such as Notepad.

Now, you will need to create two shortcuts, one for enabling the service and one for disabling the service. To do this, right-click an empty area of the desktop and select “New > Shortcut” from the menu. In the “Type the location of the item” field, paste the path to the executable that you copied earlier. Then, add the parameters “–start” or “–stop” to the end of the path, depending on whether you want to create a shortcut to enable or disable the service. For example, if the path was “C:\\Windows\\System32\\MyService.exe”, the path to enable the service would be “C:\\Windows\\System32\\MyService.exe –start” and the path to disable the service would be “C:\\Windows\\System32\\MyService.exe –stop”.

Once you have entered the path, click “Next”. You will then be asked to enter a name for the shortcut. Enter a name that will help you remember what the shortcut does, such as “My Service – Enable” or “My Service – Disable”. Once you have entered the name, click “Finish”. You have now created a shortcut for enabling or disabling the service.

Using Shortcuts

Now that you have created the shortcuts, you can use them whenever you need to enable or disable the service. To enable the service, simply double-click the shortcut you created. This will open a command prompt window and enable the service. To disable the service, double-click the other shortcut you created. This will open a command prompt window and disable the service.

The shortcuts you created can also be used in scripts or batch files. To do this, open the script or batch file in a text editor and add the path to the shortcut at the appropriate place. For example, if you wanted to enable the service in a batch file, you would add the path to the “enable” shortcut at the beginning of the file.

Conclusion

Creating shortcuts to enable or disable a service in Windows is a great way to save time. It allows you to quickly manage services without having to manually open the Services Manager each time. Furthermore, the shortcuts can be used in scripts or batch files, allowing you to automate service management tasks.

Inquire Now

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Find your next full or part-time role here

ScaleDesk can either help you find your next full time gig or a part time side gig where you can create extra income!

Onboard with us once
Skip HR screening and go to the final interview with with only your resume and a video interview you never have to redo
Get paid electronically every month for the hours you work
We will be your reference even if you work for us once

IT Teams: Use ScaleDesk to augment your team

Schedule Demo