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

  • 릴리스 버전: Yokohama
  • 업데이트 날짜 2025년 01월 30일
  • 읽기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. 업데이트를 클릭합니다.