С DISM, какая разница между захватом изображения и его изменением в автономном режиме?

2679
jiggunjer

Кажется, есть два способа сделать индивидуальное или «толстое» изображение. Установите все, что вы хотите, на эталонный компьютер (предпочтительно виртуальную машину) и «захватите» новую операционную систему для использования в качестве образа установщика.
Или возьмите ванильный образ (например, скопируйте его install.wimиз образа установщика) и используйте DISM для его монтирования и изменения. По-видимому, вы также можете установить настройки (msu / exes (?)) На образ, используя это.

Так что вы должны предпочесть в каком сценарии? Метод автономной интеграции кажется мне безопаснее и быстрее.

0
Там действительно нет разницы. В любом случае вы получаете .wim с программным обеспечением, которое вы хотите установить, которое вы можете развернуть. Ramhound 8 лет назад 0
Что ж, устранение неполадок в автоматических установках конфигурации для ваших драйверов и дополнительных приложений, безусловно, отнимает много времени, так что это может повлиять на вашу оценку времени / сложности. Frank Thomas 8 лет назад 0
@Ramhound Но кажется, что 90% статей, которые я читаю, говорят о захвате. Тем не менее, я также где-то читал, что захват с помощью `/ generalize` может сломать приложения. jiggunjer 8 лет назад 0
@FrankThomas Я думаю, что автоматические установки - это отдельная тема, которая не обязательно подразумевает использование собственного образа. jiggunjer 8 лет назад 0

1 ответ на вопрос

3
Phylum

Perhaps if you shared more about what you were looking to do the community could point you in the right direction.

Without knowing what your objective is or how the WIM will be used, I'll attempt to give you a 'thirty-thousand foot view' response.

Capturing an image: You have a running instance of Windows. Maybe it has all the software you need and setup just the way you want. Maybe it is configured a certain way. You want to be able to get back to this specific point in time. You capture an image of Windows as-is.

Modifying an image offline: You captured an image 3 months ago and you just realized you need to change it. Maybe you're adding/removing a feature or driver. Maybe you're patching it. Maybe you're adding, removing or modifying a file. Without booting that WIM (aka offline), you can make your change(s) via DISM.


Generally speaking, IT pros do both:

Build the reference machine

  • Install Windows
  • Configure the OS
  • Patch the OS
  • Install & configure software
  • When everything is to their liking, they sysprep the machine and capture an image of it. (This is the only Microsoft supported method for preparing a reference image for deployment. Certain applications may require you to perform other steps prior to sysprep'ing the machine; others simply aren't made to handle that but they're few and far between.)
  • They now have a WIM that can be deployed to 5, 10, 150,000+ machines.

Modifying the image offline

  • The WIM was captured in April of 2015.
  • The Windows Update portion of the imaging process takes take 60 minutes due to the sheer number of patches.
  • The WIM can be serviced offline to add those patches
  • Once updated, the Windows Update portion of the imaging process is now only 15 minutes

If you're building a thick reference image with loads of applications, fully patched and/or with a specific configuration, build it online.

If you're building an image where you're ONLY enabling/disabling features or adding/removing specific packages, files, drivers or updates, I see no harm in doing that offline.

Most do the former as there are limitations to offline servicing:

  • You can't install .MSI's and .EXE's offline.
  • DISM offline can handle .CAB files, .MSU files, .INF files or a folder containing one or all of the previous file types.
  • Some patches/updates cannot be applied offline.
  • Some patched/updates must be installed exclusively.
  • Some patches/updates have prerequisites that cannot be applied offline.
  • When adding patches offline, the patches are queued (in an Uninstall Pending or Install Pending state) and only get applied during the first boot.
  • DISM online is identical to DISM offline except it cannot handle .MSU files
  • If you need to install .MSU files online, use WUSA.
  • I'm sure there are others.

Because of that, its easier to do everything online, build your base then maintain it offline (within reason) moving forward.

Ах, так, вероятно, поэтому моя установка не удалась, я попытался применить много обновлений Windows в автономном режиме :). Жаль, что поддержка `.exe` не поддерживается. jiggunjer 8 лет назад 0
Цель состоит в том, чтобы иметь быстрый установщик со всем на нем. Контекст - это использование друзей и семьи. Я также просто пытаюсь узнать больше о системе в целом. Благодарю. jiggunjer 8 лет назад 0
Нет проблем. DISM может быть немного подавляющим! Используйте встроенную функцию резервного копирования и восстановления в Windows, чтобы получить полный образ машины как есть. Таким образом, если что-то пойдет не так, вы можете легко восстановить. Кроме того, проще устранять неполадки, если что-то идет не так, как обновлять / поддерживать свой собственный образ. Phylum 8 лет назад 0

Похожие вопросы