Configure remedial action - Restart Service

  • 릴리스 버전: Australia
  • 업데이트 날짜 2026년 03월 12일
  • 소요 시간: 1분
  • Configure the Restart Service remedial action for Microsoft Endpoint Configuration Manager for Investigation (MECM).

    시작하기 전에

    Role required: sn_cimaf.sn_cimaf_admin

    프로시저

    1. Open the Microsoft Endpoint Configuration Manager.
    2. Create a MECM script with the name RestartService.
    3. Provide the following code in the script block.
      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.
      MECM restart service
    8. Click Save.