Services.msc

Hi Team,

How to stop the particular service running in the background using UiPath studio?

Sample code helps a lot

Thanks

Hi @Honda

Drag and drop the “Kill Process” activity into your workflow.
Set the ProcessName property (without .exe extension).

Example: Kill Notepad service.
ProcessName = “notepad”

Happy Automation.

Mark as a solution if you found helpful

Hi @Honda,

If you would like to do it via UiPath, you will need to have the powershell script created as mentioned in below post and then you can invoke the same using Invoke Powershell activity in UiPath. please follow the steps mentioned in below thread:

Alternatively, you can simply try doing it using powershell command:

Hope this helps.

Please note: You also need to consider that service you are trying to stop/restart doesn’t require admin rights, else you would need to run these commands via admin mode. Most of the services under services.msc require admin rights to start/stop.

Regards
Sonali

@honda_t

Go to Task manager and identify the process name from details section as a first step

Go to Studio and use the activity Kill Process. Enter the name matching under DETAILS in the above screenshot. It will work even if exe extension is not included