Configure remedial actions - End Process

  • Versão de lançamento: Australia
  • Atualizado 12 de mar. de 2026
  • 1 min. de leitura
  • Configure the End Process remedial action for Microsoft Endpoint Configuration Manager for Investigation (MECM).

    Antes de Iniciar

    Role required: sn_cimaf.sn_cimaf_admin

    Procedimento

    1. Open the Microsoft Endpoint Configuration Manager.
    2. Create a MECM script with the name EndProcess.
    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.
      MECM End Process
    8. Click Save.