Jak aktualizovat více obrazů v jediném wim souboru? jak integrovat aktualizace do offline vhd? Script pro integraci aktualizací offline do více/všech obrazů v rámci .wim souboru nebo vhd disku pro operační systémy Windows 7 / Server 2008 R2
Bored with patching multiple images in single wim file? Bored for looking for and installing patches from windows update? Don't want to patch each vhd file manualy? Here is the script to automate whole process - script detects all required updates for Windows 7 / Server 2008 R2, downloads updates and integrate (patch) all/or selected images in wim file or mounts vhd file and patches vhd file offline. No longer requiered to check for updates for the installations and vhd files and spent many hours with manual patching every 1st Tuesday in month. You can use downloaded patches with MDT as well.
.Description
This script applies patches to all | selected images in the wim file or vhd file. Definitions and updates are downloaded directly from Microsoft windows update but some updates are static and definitions are downloaded from http://optimalizovane-it.cz/support/static.xml. Static xml file
is updated every month so you will get all required and optional updates for Windows 7 and Server 2008 R2 (sorry no support for Vista and 2008).
This script will not update Silverlight, Windows Defender,... because these updates are .exe files and DISM doesn't support these updates.
!!! patching images in wim file is VERY TIME CONSUMIG - approx. 45min per image
Usage: imagepatcher.ps1 -dbg:yes -imagefile:path to image -patchimages
Note: You must run PowerShell as elevated
If you discover some bug or missing update please contact me at ondrejv_.at._optimalizovane-it.cz
Version 0.9 - 7.June 2010
.Parameter -dbg
Displays more detailed info about the process
Usage:
imagepatcher.ps1 -dbg:yes -imagefile:c:\deployment\install.wim
.Parameter -imagefile
full path to the image file.
This file should be wim file - you can specify "all" to patch all images inside wim file or comma delimited indexes of the images "1,3,5,10,11" this will patch only selected images
This file should be vhd file - this will mount vhd and applies updated to this os
wim or vhd file MUST be writable - copy from DVD first to the hard drive
Usage:
imagepatcher.ps1 -imagefile:c:\deployment\install.wim
imagepatcher.ps1 -imagefile:c:\virtual\windows7.vhd
.Parameter -patchimages
defines which images will be patched (not used with vhd files). This parameter should be "all" (default) or comma delimited index of images in the wim file
Usage:
imagepatcher.ps1 -imagefile:c:\deployment\install.wim -patchimages:"all"
imagepatcher.ps1 -imagefile:c:\deployment\install.wim -patchimages:"1,3,6,10"
.\imagepatcher.ps1 -imagefile:"C:\DeploymentShare\Operating Systems\AIO\sources\install.wim" -dbg:yes