---
sourceDocument: Australia IT Service Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/it-service-management

 Release :

    - australia

ft:locale :

    - en-US

ft:publication_title :

    - Australia IT Service Management

ft:clusterId :

    - itsm

bundleId :

    - itsm

workflow :

    - Technology


---

# Configure remedial actions - End Process

# Configure remedial actions - End Process {#ariaid-title1}

Release version: Australia  
Updated March 12, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read  
Configure the End Process remedial action for Microsoft Endpoint Configuration Manager for Investigation (MECM).

## Before you begin

Role required: sn_cimaf.sn_cimaf_admin

## Procedure

1. Open the Microsoft Endpoint Configuration Manager.
2. Create a MECM script with the name <kbd class="ph userinput">EndProcess</kbd>.  
   For more information, see [Create a script in Microsoft Endpoint Configuration Manager](https://servicenow-prod.fluidtopics.net/FHn0UsBsGSF6uOSfbKbbpA "Create a script in the Microsoft Endpoint Configuration Manager to configure the display of the processes metrics on the Investigation tab of the Incident record.").
3. Provide the following code in the script block.  

       Param(
       [Parameter(Mandatory=$True)]
       [string]$process_id
       )
       Get-Process -Id $process_id | Stop-Process -Force -PassThru

4. Retrieve and copy the script GUID.
5. Open the MECM Action Configuration \[sn_mecm_action_config\] table.  
   The MECM Action Configuration table displays the list of action configurations.
6. From the list of configurations, select and edit End Process.
7. In the Action input field, add the script GUID.  
8. Click Save.
{#config-ra-end-process__steps_n5r_tgp_dxb}

