---
sourceDocument: Brazil IT Service Management
sourceDocumentLink: https://www.servicenow.com/docs/r/it-service-management

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil IT Service Management

ft:clusterId :

    - itsm

bundleId :

    - itsm

workflow :

    - Technology


---

# Configure processes metrics

# Configure processes metrics {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read  
Configure the top processes by CPU and top processes by memory metrics for Microsoft
Endpoint Configuration Manager for Investigation.

## 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\]](https://support.servicenow.com/kb_view.do?sysparm_article=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 a MECM script with the name <kbd class="ph userinput">GetProcess</kbd>.  
   For more information, see [Create a script in Microsoft Endpoint Configuration Manager](https://www.servicenow.com/docs/5FfnIpUcdcl0UpZLvE_Vqw "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]$orderBy,
       [Parameter(Mandatory=$True)]
       [string]$top
       )

       $processes = get-process

       $Total = 0;
       ForEach ($process in $processes) {
           $Total += $process.cpu;
       }

       $processes | Sort-Object $orderBy -Descending | select processname,id,ws,cpu -First $top | select processname,id, @{l="mem"; e={$_.ws}}, @{l="cpu"; e={($_.cpu / $Total) * 100}};

4. Retrieve and copy the script GUID.
5. Open the MECM Adapter Configuration \[sn_mecm_adapter_config\] table.  
   The MECM Adapter Configuration table displays the list of adapter configurations.
6. From the list of configurations, select and edit Running processes - CPU%.
7. In the Action input field, add the script GUID.  
8. Select Save.
9. From the list of configurations, select and edit Running processes - MEM.
10. In the Action input field, add the script GUID.
11. Select Save.

## Result

The top processes by CPU and top processes by memory metrics are displayed on the
Investigation tab of the incident record in Service Operations Workspace.

