Configure remedial action - Restart Service

task brazil Updated Sep 10, 2026 1 min read config-ra-restart-service.md
Raw file servicenow.com

Configure the Restart Service remedial action for Microsoft Endpoint Configuration Manager for Investigation (MECM).

About this task

Important:

Starting with the Brazil release, Microsoft Endpoint Configuration Manager for Investigation is being prepared for future deprecation. It will be hidden and no longer installed on new instances but will continue to be supported. For details, see the Deprecation Process [KB0867184] article in the Now Support Knowledge Base.

Before you begin

Role required: sn_cimaf.sn_cimaf_admin

Procedure

  1. Open the Microsoft Endpoint Configuration Manager.

  2. Create an MECM script with the name RestartService.

    For more information, see Create a script in Microsoft Endpoint Configuration Manager.

  3. Provide the following code in the script block.

    Text
    Param([Parameter(Mandatory=$True)][string]$service_name)Restart-Service -Force -Name $service_name -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 Restart service using name.

  7. In the Action input field, add the script GUID.

    [Omitted image "mecm-restart-service.png"] Alt text: MECM restart service

  8. Select Save.

Parent Topic:Configuring CI metrics for Microsoft Endpoint Configuration Manager for Investigation

Search documentation
Search document titles and file paths on the brazil branch