시스템 개요 - msinfo32 메트릭 구성

  • 릴리스 버전: Australia
  • 업데이트 날짜 2026년 03월 12일
  • 소요 시간: 2분
  • 조사용 Microsoft Endpoint Configuration Manager(MECM)에 대한 시스템 개요 - msinfo32 메트릭을 구성합니다.

    시작하기 전에

    필요한 역할: sn_cimaf.sn_cimaf_admin

    프로시저

    1. Microsoft Endpoint Configuration Manager를 엽니다.
    2. createMSInfo32File 이름으로 MECM 스크립트를 생성합니다.
      자세한 내용은 Microsoft Endpoint Configuration Manager에서 스크립트 생성 문서를 참조하십시오.
    3. 스크립트 블록에 다음 코드를 입력합니다.
      Param(
      [Parameter(Mandatory=$True)]
      [string]$scriptName
      )
       
      $filePath = ".\" + $scriptName + ".txt";
       
      #invoke msinfo32 and save data into file
      msinfo32 /report $filePath;
      
    4. checkMsInfo32FileExist라는 이름의 MECM 스크립트를 만듭니다.
      자세한 내용은 Microsoft Endpoint Configuration Manager에서 스크립트 생성 문서를 참조하십시오.
    5. 스크립트 블록에 다음 코드를 입력합니다.
      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. 이름이 fetchMsInfo32File인 MECM 스크립트를 생성합니다.
      자세한 내용은 Microsoft Endpoint Configuration Manager에서 스크립트 생성 문서를 참조하십시오.
    7. 스크립트 블록에 다음 코드를 입력합니다.
      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. 스크립트 GUID를 검색하고 복사합니다.
    9. MECM 어댑터 구성 [sn_mecm_adapter_config] 테이블을 엽니다.
      MECM 어댑터 구성 테이블에 어댑터 구성 목록이 표시됩니다.
    10. 구성 목록에서 시스템 정보(msinfo32)를 선택하고 편집합니다.
    11. 작업 입력 필드에 스크립트 GUID를 추가합니다.
      시스템 개요 – msinfo32
    12. 업데이트를 클릭합니다.