Easily Add Windows Update In Offline Image Using DISM HTMD Blog
Có thể bạn quan tâm
In this post, you will learn the steps to add Windows Update to Offline Image Using DISM. Offline Servicing is the process to keep your Windows Image (WIM) file updated by injecting the latest SSU/LCU and other Security Updates.
Why do you need to Modify a Windows image using DISM? You can make changes to offline mounted or applied Windows images without booting into the operating system you’re going to modify.
Deployment Image Servicing and Management (DISM) is a command-line tool used to update offline Windows images. There are two ways to install or remove packages offline with DISM. You can either apply an unattend answer file to the offline image, or you can add or remove the package directly from the command prompt.
The best way to service a Windows image is offline with DISM. DISM can be used to install, uninstall, configure, and update drivers, features, and packages in Windows images and Windows Preinstallation Environment (WinPE) images without booting the image.
You can mount and modify multiple images on a single computer. Before you can make changes to your image, you’ll have to mount or apply the image depending on your scenario.
Modify an image offline: Start with an image file (either .wim or .ffu format). Mount the file using DISM. It appears as a group of folders. Modify it using DISM, adding drivers, languages, and more. Use DISM to unmount and commit the changes back to the original image file. Apply it to new devices.
- SCCM Customize Windows Out of Box Experience OOBE Using ConfigMgr
- Windows 10 Version Numbers Build Numbers Major Minor Build Rev
- Upgrade to Windows 10 21H2 using KB5003791 Enablement Package
Identify the Windows Update
The first important phase is to identify the update you will add to Windows Image.
Check Windows 10 or Windows 11 release history from the Microsoft Offical site to ensure the available update for devices running Windows 10, version 2004, 20H2, or 21H1 to Windows 10, version 21H2.
Download Windows Update
To get the standalone package for the update, Browse to Microsoft Update Catalog https://www.catalog.update.microsoft.com/Home.aspx.
Search for updates from the Windows Update Catalog – To download the latest cumulative update (LCU) for your operating system that you want to apply manually. Put the KB article number and click the Search icon.
Note – While using search, make sure no space between KB<Article Number>. For example KB5009543
Identify the required patch as per the environment. For example, Here’s how you can download the latest cumulative update (LCU) KB5009543, To search for additional updates to download, repeat steps.
Here you can see Search results for “KB5009543”. Browse the displayed list to check and Select the products (Windows Version), Architecture.
Click on Download to download the updates. If the update has any prerequisite updates, get those too.
Important – Identify the image index before you proceed further to add Windows update. You can get more details about the Image Index. Here we are extracting the Windows 10 Enterprise Edition; you must specify /index:3.
Mount an Image
Mount the Windows image (Install.wim) – Use DISM to mount the image into a temporary location on your PC.
- Open a command prompt or DISM (Deployment and Imaging Tools Environment) with administrator privileges.
- Type the following command for creating an empty folder/directory to mount the offline Windows image (Wim).
In this example – The directory is created inside the D drive named _Mount and WIM File location “D:\Win10 21H2\install.wim” Make sure that you adjust the paths as per your environment.
Note: Don’t mount images to protected folders, such as your User\Documents folder.
mkdir D:\_Mount Dism /mount-wim /wimfile:"D:\Win10 21H2\install.wim" /mountdir:D:\_Mount /index:3Add a Windows update package to an image – To apply the download latest update to your mounted image.
Type the following command to add a specific package to the image. You can add multiple packages on one command line. They will be installed in the order listed in the command line.
💡To add multiple packages, you can type the command – For Example: Dism /Image:“C:\mount\windows” /Add-Package /PackagePath=”C:\WindowsUpdates\windows10.0-kb00001-x64.msu” /PackagePath=”C:\WindowsUpdates\windows10.0-kb00003-x64.msu”
Dism /image:D:\_Mount /add-package /packagepath:"D:\2022-01 Cumulative Update for Windows 10 Version 21H2 for x64-based Systems (KB5009543)\windows10.0-kb5009543-x64_c7b660efcaaa2dd1d55fe91c5cea3d9b209a15cd.msu"Where windows10.0-kb5009543-x64_c7b660efcaaa2dd1d55fe91c5cea3d9b209a15cd.msu” is the name of the update file!
Verify the packages, Review the resulting list of packages and verify that the list contains the package.
Dism /Get-Packages /image:D:\_Mount- Package Identity
- State
- Release Type
- Install Time
Reduce Size
You can also reduce the size of a Windows image. Windows also use internal processes to reduce the size of the WinSxS folder, such as uninstalling and deleting packages with components that other components have replaced with newer versions.
Deleting files from the WinSxS folder or deleting the entire WinSxS folder may severely damage your system so that your PC might not boot and make it impossible to update.
The /Cleanup-Image parameter of Dism.exe provides advanced users more options to further reduce the WinSxS folder’s size.
Using the /ResetBase parameter together with the /StartComponentCleanup parameter of DISM.exe on a running version of Windows 10 or later removes all superseded versions of every component in the component store
Dism /Image:"D:\_Mount" /Cleanup-Image /StartComponentCleanup /ResetBaseUnmount Windows Image
After you modify a mounted image, you must unmount it. If you mount your image with the default read/write permissions, you can commit your changes. This makes your modifications a permanent part of the image.
To save changes you make to the image, use the /commit option when you use DISM to unmount the image.
Dism /unmount-wim /mountdir:D:\_Mount /commit rmdir /Q /S D:\_MountDISM Command Line Parameters
Following are the supported DISM command-line parameters.
PS C:\Users\digit> dism /?
Deployment Image Servicing and Management toolVersion: 10.0.22579.1
DISM.exe [dism_options] {Imaging_command} []DISM.exe {/Image: | /Online} [dism_options]{servicing_command} []
DESCRIPTION:
DISM enumerates, installs, uninstalls, configures, and updates featuresand packages in Windows images. The commands that are available dependon the image being serviced and whether the image is offline or running.
FFU COMMANDS:
/Capture-Ffu – Captures a physical disk image into a new FFU file./Apply-Ffu – Applies an .ffu image./Split-Ffu – Splits an existing .ffu file into multiple read-onlysplit FFU files./Optimize-Ffu – Optimizes a FFU file so that it can be applied to storageof a different size.
WIM COMMANDS:
/Apply-CustomDataImage – Dehydrates files contained in the custom data image./Capture-CustomImage – Captures customizations into a delta WIM file on aWIMBoot system. Captured directories include allsubfolders and data./Get-WIMBootEntry – Displays WIMBoot configuration entries for thespecified disk volume./Update-WIMBootEntry – Updates WIMBoot configuration entry for thespecified disk volume./List-Image – Displays a list of the files and folders in aspecified image./Delete-Image – Deletes the specified volume image from a WIM filethat has multiple volume images./Export-Image – Exports a copy of the specified image to anotherfile./Append-Image – Adds another image to a WIM file./Capture-Image – Captures an image of a drive into a new WIM file.Captured directories include all subfolders anddata./Get-MountedWimInfo – Displays information about mounted WIM images./Get-WimInfo – Displays information about images in a WIM file./Commit-Wim – Saves changes to a mounted WIM image./Unmount-Wim – Unmounts a mounted WIM image./Mount-Wim – Mounts an image from a WIM file./Remount-Wim – Recovers an orphaned WIM mount directory./Cleanup-Wim – Deletes resources associated with mounted WIMimages that are corrupted.
GENERIC IMAGING COMMANDS:
/Split-Image – Splits an existing .wim file into multipleread-only split WIM (SWM) files./Apply-Image – Applies an image./Get-MountedImageInfo – Displays information about mounted WIM and VHDimages./Get-ImageInfo – Displays information about images in a WIM, a VHDor a FFU file./Commit-Image – Saves changes to a mounted WIM or VHD image./Unmount-Image – Unmounts a mounted WIM or VHD image./Mount-Image – Mounts an image from a WIM or VHD file./Remount-Image – Recovers an orphaned image mount directory./Cleanup-Mountpoints – Deletes resources associated with corruptedmounted images.
IMAGE SPECIFICATIONS:
/Online – Targets the running operating system./Image – Specifies the path to the root directory of anoffline Windows image.
DISM OPTIONS:
/English – Displays command line output in English./Format – Specifies the report output format./WinDir – Specifies the path to the Windows directory./SysDriveDir – Specifies the path to the system-loader file namedBootMgr./LogPath – Specifies the logfile path./LogLevel – Specifies the output level shown in the log (1-4)./NoRestart – Suppresses automatic reboots and reboot prompts./Quiet – Suppresses all output except for error messages./ScratchDir – Specifies the path to a scratch directory.
For more information about these DISM options and their arguments, specify anoption immediately before /?.
Examples:DISM.exe /Mount-Wim /?DISM.exe /ScratchDir /?DISM.exe /Image:C:\test\offline /?DISM.exe /Online /?
Author
Từ khóa » How To Update Windows 10 21h2 Offline
-
How To Install Windows 10 21H2 Update Manually
-
KB5003791: Update To Windows 10, Version 21H2 By Using An ...
-
Is There Any Solution To Update Windows 10 To The Newest Build Offline?
-
Install Windows 10 Version 21H2 Offline
-
Can't Download Windows 10 21H2? Here's How To Get It
-
How To Download And Install Windows 10 21H2 November 2021 ...
-
How To Upgrade To Windows 10 21H2, November 2021 Update
-
Windows 10 KB5013942 Is Released To 21H1 & 21H2 [MiniTool Tips]
-
Windows 10 KB5012599 (21H2, 21H1) Released With New Features
-
How To Install/Update To Windows 10 Version 21H2?
-
How To Download And Install Windows 10 21H2 Update Now
-
Windows 10: A Guide To The Updates - Computerworld
-
Download July 2022 Patch Tuesday Updates For Windows 10 ...
-
How To Update Several Offline Systems From 1803 To 20H2?