Configure system overview - msinfo32 metrics

  • 릴리스 버전: Australia
  • 업데이트 날짜 2026년 03월 12일
  • 소요 시간: 3분
  • Configure the system overview - msinfo32 metrics 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 createMSInfo32File.
    3. Provide the following code in the script block.
      Param(
      [Parameter(Mandatory=$True)]
      [string]$scriptName
      )
       
      $filePath = ".\" + $scriptName + ".txt";
       
      #invoke msinfo32 and save data into file
      msinfo32 /report $filePath;
      
    4. Create a MECM script with the name checkMsInfo32FileExist.
    5. Provide the following code in the script block.
      Param(
      [Parameter(Mandatory=$True)]
      [string]$scriptName
      )
       
      $filePath = ".\" + $scriptName + ".txt";
       
      #check if file exist
      $fileExist = Test-Path -Path $filePath;
       
      #read msinfo32 data
      if($fileExist) {
          Write-Host "True"
      }else {
          Write-Host "False";
      }
      
    6. Create a MECM script with the name fetchMsInfo32File.
    7. Provide the following code in the script block.
      Param(
      [Parameter(Mandatory=$True)]
      [string]$scriptName
      )
       
      $filePath = ".\" + $scriptName + ".txt";
       
      #check if file exist
      $fileExist = Test-Path -Path $filePath;
       
      #read msinfo32 data
      if($fileExist) {
          Get-Content $filePath;
          Remove-Item $filePath
      }else {
          Write-Host "File doesn't exist";
      }
      
    8. Retrieve and copy the script GUID.
    9. Open the MECM Adapter Configuration [sn_mecm_adapter_config] table.
      The MECM Adapter Configuration table displays the list of adapter configurations.
    10. From the list of configurations, select and edit System information (msinfo32).
    11. In the Action input field, add the script GUID.
      System overview - msinfo32
    12. Click Update.