강좌 / 팁

윈 도 우 ImageX 파헤치기! (기본편)

2011.01.27 13:34

whislerxp 조회:9194

음... 결국은 이런 글을 쓰게 되는군요. ^^

ImageX는 비스타 출시 이후부터 줄곧 WAIK(Windows Automation Installation Kit)에 포함된 WIM 이미지를 다루는 도구입니다.

현재 정식으로는 3번까지, 이번 서비스 팩 출시 이후로 새 버전이 한 번 더 나올겁니다. (일부분은 Wzor에 유출)

 

출시된 버전 목록은 다음과 같습니다.

6.0.6000.16386, 6.0.6001.18000, 6.1.7600.16385이고, x86, amd64(x64), ia64 플랫폼별로 버전이 있습니다.

(32비트 ImageX로 64비트 이미지를 작업하지 않으셨으면 해서 설명합니다.)

 

위의 버전 목록을 보시면 아시겠지만,

비스타를 포함해서 설명하는 이유는 비스타를 7 , 2008 또는 2008 R2와 통합하시는 분들을 위해서입니다.

(비스타를 통합하려면 비스타용 ImageX로 install.wim 이미지를 작업하셔야 합니다.)

 

기능의 일부분만을 소개하겠지만 이해가 빠르신 분들은 도움말을 쉽게 참조하시리라 믿습니다.

==================================================================================================================

ImageX Tool for Windows
Copyright (C) Microsoft Corp. All rights reserved.
Version: 6.1.7600.16385

IMAGEX [Flags] /Operation [Parameter List]

  Operation [ APPEND  | APPLY   | CAPTURE | DELETE  |
              DIR     | EXPORT  | INFO    | SPLIT   |
              MOUNT   | MOUNTRW | REMOUNT | UNMOUNT |
              CLEANUP | COMMIT ]

For help on a specific operation type:
  IMAGEX /Operation /?

Examples:
  IMAGEX /APPEND /?
  IMAGEX /APPLY /?
  IMAGEX /CAPTURE /?
  IMAGEX /DELETE /?
  IMAGEX /DIR /?
  IMAGEX /EXPORT /?
  IMAGEX /INFO /?
  IMAGEX /SPLIT /?
  IMAGEX /MOUNT /?
  IMAGEX /MOUNTRW /?
  IMAGEX /REMOUNT /?
  IMAGEX /COMMIT /?
  IMAGEX /UNMOUNT /?
  IMAGEX /CLEANUP /?

All operations accept the following flags:
  /SCROLL
  /LOGFILE logfile.log

==================================================================================================================

주로 사용할 명령어는

/APPLY, /CAPTURE, /DELETE, /EXPORT, /INFO, /MOUNT, /MOUNTRW, /COMMIT, /UNMOUNT, /CLEANUP 입니다.

/APPLY

선택한 이미지를 특정 위치에 풀어줄때 사용합니다.

/CAPTURE

특정 위치의 파일 및 폴더를 캡처할때 사용합니다.

/DELETE

WIM 이미지에 포함된 세부 인덱스에 해당하는 이미지를 지정하여 삭제합니다.

/EXPORT

WIM 이미지에 포함된 세부 인덱스에 해당하는 이미지를 추출합니다.

/INFO

WIM 이미지의 세부 정보를 표시합니다.

/MOUNT

WIM 이미지에 포함된 세부 인덱스에 해당하는 이미지를 [읽기 전용]으로 마운트(탑재)합니다.

/MOUNTRW

WIM 이미지에 포함된 세부 인덱스에 해당하는 이미지를 [읽기/쓰기]가 가능하도록 마운트(탑재)합니다.

/COMMIT

WIM 이미지의 세부 인덱스에 해당하는 이미지에 변경된 사항을 적용합니다.

/UNMOUNT

마운트(탑재)한 이미지를 언마운트(탑재 해제)합니다.

/CLEANUP

마운트 작업도중 손실된 자료를 정리해줍니다. (흔히 말하는 꼬인경우)

==================================================================================================================

각 세부 사항은 위에서 보신 바와 같이 추가로 /? 옵션을 주면 하위 도움말을 보실 수 있습니다.

그럼 마운트부터 해볼까요?

==================================================================================================================

IMAGEX [FLAGS] /MOUNTRW [image_file image_number | image_name image_path]

Mounts a WIM image with read/write permission, to a specified path.

  image_file - The path of the WIM file containing the specified image.
  image_number - The number that identifies the image within the WIM file.
  image_name - The name that identifies the image within the WIM file.
  image_path - The path where the specified image will be mounted.

Without FLAGS:

  Lists mounted images.

Accepted FLAGS:

  /CHECK
  Enables WIM integrity checking. If not provided, existing checks are removed.

Example:
  imagex /mountrw d:\imaging\data.wim 2 c:\mounted_images
==================================================================================================================

마지막 부분에 친절하게 예시가 나와있습니다.

d:\imaging\data.wim의 2번 이미지를 c:\mounted_images에 [읽기/쓰기] 모드로 탑재하라는 뜻이지요.

이후에는 c:\mounted_images 폴더에 가셔서 하고싶은 변경사항을 적용하시면 됩니다.

==================================================================================================================

다음은 언마운트입니다.

==================================================================================================================

IMAGEX /UNMOUNT [/COMMIT] [image_path]

Unmounts a WIM image from the specified path.

  image_path - The path to be unmounted.

Without FLAGS:

  Lists mounted images.

Accepted FLAGS:

  /COMMIT
  Saves changes to the mounted WIM file. If not specified changes are discarded.

Example:
  imagex /unmount /commit c:\mounted_images
==================================================================================================================

하위 옵션으로 /COMMIT 명령어를 사용할 수 있으며, 역시 친절하게 예시가 나와있습니다.

c:\mount_images에 탑재된 이미지를 변경사항을 적용하고, (/COMMIT) 언마운트(탑재 해제)하라는 뜻이지요.

==================================================================================================================

다음은 추출입니다.

==================================================================================================================

IMAGEX [FLAGS] /EXPORT src_file src_number | src_name dest_file dest_name

Exports a copy of the specified image to another WIM file.

  src_file - The path of the WIM file that contains the image to be copied.
  src_number - The number that identifies the image within the source WIM.
  src_name - The name that identifies the image within the source WIM.
  dest_file - The path of the WIM file that will receive the image copy.
  dest_name - The unique name for the image in the destination WIM.

Accepted FLAGS:

  /BOOT
  Marks a volume image as bootable. Available for Windows PE images only.

  /CHECK
  Enables WIM integrity checking. If not provided, existing checks are removed.

  /COMPRESS [maximum | fast | none]
  Specifies the type of compression used when exporting to a new WIM file.

  /REF splitwim2.swm
  Enables the reference of split WIM (SWM) files.

  splitwim2.swm - Path to additional split file(s). Wild cards are accepted.

  /TEMP
  Specifies the path where temporary files are stored.

Comments:
  If src_name is "*" then all images are exported to dest_file.

Example:
  imagex /export d:\imaging\data.wim 1 d:\imaging\newfile.wim "Exported Image"

==================================================================================================================

역시 친절하게 예시가 나와있지요?

d:\imaging\data.wim 파일의 1번 인덱스를 d:\imaging\newfile.wim에 추출하고,

인덱스의 이미지 이름은 "Exported Image"로 지정한다는 뜻입니다.

사용할 수 있는 하위 명령어들 가운데 /COMPRESS는 압축에 관련된 사항으로 필요하신 분만 사용하시면 됩니다.

==================================================================================================================

마지막으로 WIM 이미지 정보 보기를 끝으로 마치겠습니다.

==================================================================================================================

IMAGEX [FLAGS] /INFO img_file [img_number | img_name] [new_name] [new_desc]

Returns the stored XML descriptions for the specified WIM or image.

  img_file - The path of the WIM file to be queried for XML information.
  img_number - The number that identifies an image within the WIM file.
  img_name - The name that identifies an image within the WIM file.
  new_name - The new unique name for the specified image.
  new_desc - The new description for the specified image.

Accepted FLAGS:

  /BOOT
  Marks a volume image as bootable. Available for Windows PE images only.

  /CHECK
  If not provided, existing checks are removed during updates.

  /TEMP
  Specifies the path where temporary files are stored.

  /XML
  Returns the output as well-formed XML.

Example:
  imagex /info d:\imaging\data.wim

==================================================================================================================

출력예시를 보여드립니다.

==================================================================================================================

WIM Information:
----------------
Path:        H:\sources\boot.wim
GUID:        {1848b0f1-faa3-4e0c-9ca7-6756dff23fd0}
Image Count: 1
Compression: LZX
Part Number: 1/1
Boot Index:  1
Attributes:  0x8
             Relative path junction


Available Image Choices:
------------------------
<WIM>
  <TOTALBYTES>129260088</TOTALBYTES>
  <IMAGE INDEX="1">
    <DIRCOUNT>2071</DIRCOUNT>
    <FILECOUNT>9196</FILECOUNT>
    <TOTALBYTES>789728876</TOTALBYTES>
    <HARDLINKBYTES>266692069</HARDLINKBYTES>
    <CREATIONTIME>
      <HIGHPART>0x01CA05E7</HIGHPART>
      <LOWPART>0xDAB53F06</LOWPART>
    </CREATIONTIME>
    <LASTMODIFICATIONTIME>
      <HIGHPART>0x01CA05E7</HIGHPART>
      <LOWPART>0xDC8315E6</LOWPART>
    </LASTMODIFICATIONTIME>
    <WINDOWS>
      <ARCH>0</ARCH>
      <PRODUCTNAME>Microsoft? Windows? Operating System</PRODUCTNAME>
      <EDITIONID>WindowsPE</EDITIONID>
      <INSTALLATIONTYPE>WindowsPE</INSTALLATIONTYPE>
      <PRODUCTTYPE>WinNT</PRODUCTTYPE>
      <PRODUCTSUITE></PRODUCTSUITE>
      <LANGUAGES>
        <LANGUAGE>ko-KR</LANGUAGE>
        <DEFAULT>ko-KR</DEFAULT>
      </LANGUAGES>
      <VERSION>
        <MAJOR>6</MAJOR>
        <MINOR>1</MINOR>
        <BUILD>7600</BUILD>
        <SPBUILD>16385</SPBUILD>
        <SPLEVEL>0</SPLEVEL>
      </VERSION>
      <SYSTEMROOT>WINDOWS</SYSTEMROOT>
    </WINDOWS>
    <NAME>Microsoft Windows Vista PE (x86)</NAME>
    <DESCRIPTION>Microsoft Windows Vista PE (x86)</DESCRIPTION>
  </IMAGE>
</WIM>

==================================================================================================================

내용을 설명해드리자면... boot.wim WIM 이미지에는 인덱스가 하나 있고[Wim Information - Image Conut],

에디션은 WindowsPE이며[<EDITIONID>], 언어는 ko-KR로 지정되어 있습니다.[<LANGUAGES>]

버전은 6.1.7600.16385 이고[<VERSION>], 서비스팩이 적용되지는 않았습니다.[<SPLEVEL>]

이미지의 이름은 Microsoft Windows Vista PE (x86)이며,[<NAME>]

(/EXPORT 사용시 "Exported Image"에 지정한 내용이 여기에 적용됩니다.)

설명은 Microsoft Windows Vista PE (x86)입니다.[<DESCRIPTION>]

==================================================================================================================

줄줄이 지루한 설명이었지만 도움이 된다면 기쁘겠군요. ^^

이상으로 기본편을 마치겠습니다.

ImageX 모든 버전 링크는 https://www.datafilehost.com/download-f3819a4f.html 입니다.

번호 제목 글쓴이 조회 추천 등록일
[공지] 강좌 작성간 참고해주세요 gooddew - - -
901 소프트웨어| TotalCMD 유용한 팁 하나 [5] VERSACE 14216 0 02-08
900 기 타| WIFI 와이파이 무선인터넷 비밀번호들 모음 [4] gooddew 11981 0 02-08
899 소프트웨어| ipconfig.exe 명령어가 너무 길어... [6] 우금티 7029 1 02-08
898 하드웨어| 인텔 펌업 이미지를 USB 메모리로 부팅하기 [3] dogma01 14980 0 02-04
897 소프트웨어| MS OFFICE 2010 인증토큰으로 인증하기 [8] gooddew 33419 0 02-03
896 윈 도 우| Windows 7 pro 인증토큰으로 인증받기 [4] gooddew 18428 0 02-03
895 윈 도 우| 이름없는 폴더 만들기 [12] gooddew 8327 0 02-02
894 소프트웨어| Google Public DNS [3] gooddew 6169 0 02-02
893 윈 도 우| 바탕화면 아이콘 화살표 없에기. [10] 껄덕쇠 8904 0 02-02
892 윈 도 우| 로엔님 라이트 버전에서 Vistalizator 없이 한글 팩 설치하기 [6] 아포크리파 8677 0 02-01
891 윈 도 우| 윈도우 7 바탕화면에 인터넷 익스플로러 아이콘 생성 [10] 선지자 23556 0 02-01
890 소프트웨어| 압축프로그램 전격 비교! [9] mmorpgbara 6857 0 01-31
889 윈 도 우| 예약파티션 100MB 제거하기 [3] 우금티 20876 0 01-31
888 소프트웨어| Win 공유폴더를 안드로이드에서 마운트하기 [4] Andrei Sak 12934 0 01-28
887 윈 도 우| 쓸모없는 부팅언어 제거 [13] 우금티 10634 0 01-28
» 윈 도 우| ImageX 파헤치기! (기본편) [4] whislerxp 9194 0 01-27
885 윈 도 우| Sysprep 페이징 파일 삭제 후 통합 방법 [4] iwindows7 13152 0 01-26
884 윈 도 우| 윈7 서비스팩1 설치후 부팅속도 저하 되시는분? [6] 작은천사 13875 0 01-25
883 윈 도 우| 하드로 윈도우 설치하기(xp vista 7) [4] kailcarson 9627 0 01-24
882 윈 도 우| 윈7 재미난 기능 [7] 메실 12006 0 01-23
XE1.11.6 Layout1.4.8