Windows Golden Image Building: Offline Updates ISO

Introduction

In enterprise deployments, the Golden Image is the cornerstone of efficiency and security. It is a standardized system template pre-integrated with the latest patches, drivers, and configurations. This avoids repetitive online updates for each device and shortens deployment cycles. Offline Servicing is the core method for creating golden images: by injecting updates directly into install.wim​ using the DISM tool, devices start from a secure baseline at initial boot.

This guide uses command-line operations as the core, providing an end-to-end workflow to help users build a streamlined, secure, and rapidly deployable Windows 10 LTSC 2021 installation medium from a raw image.

I. Core Concept

Before diving into practice, a thorough understanding of several core concepts is essential. Many common failures in image servicing stem from misunderstandings of basic components and their interrelationships.

1.1 Windows Image Formats: WIM vs ESD

Windows installation files primarily use two formats, with servicability as the key distinction:

Conversion Method (taking install.esd​ as an example):

1.2 Windows Update Ecosystem: SSU, LCU, and.NET

The core of offline servicing is correctly integrating updates. Understand the following types and their dependencies:

Critical Order: SSU → LCU →.NET (reversing the order will cause a 0x800f0823​ error, indicating "a new servicing stack is required").

II. Preparation—Setting Up the Operating Environment

A standardized environment is the foundation of success. Resolve issues related to permissions, paths, and tools:

2.1 Install Windows ADK

ADK (Assessment and Deployment Kit) includes tools required for offline servicing (DISM, oscdimg):

2.2 Plan the Working Directory

To avoid path issues, create a space-free working folder in the root directory (e.g., C:\WIM_Project​) and categorize by function:

C:\WIM_Project  
├─ 1_ISO_Source       # All files extracted from the original ISO  
├─ 2_Updates          # Downloaded update packages (SSU/LCU/.NET)  
│  ├─ SSU             # SSU updates  
│  └─ LCU_NET         # LCU and.NET updates  
├─ 3_Mount            # Temporary directory for mounting images (must be empty)  
└─ 4_ISO_Output       # Final generated ISO files  

2.3 Obtain and Prepare Source Files

III. Patch Search—Accurately Obtaining Updates

The Microsoft Update Catalog is the official source for offline updates. Master the following search技巧:

3.1 Search Tips

3.2 Example: Download SSU/LCU/.NET

Taking Windows 10 LTSC 2021 x64 as an example:

Naming Suggestion: Rename by installation order (e.g., 01-SSU-19041.3562-x64.msu​, 02-LCU-KB5062554-x64.msu​) to avoid order errors.

IV. Core Process—Integrating Updates Using DISM

DISM (Deployment Imaging and Servicing Management) is the core of Microsoft's official image management toolchain. This section demonstrates its key scenario applications:

4.1 Mount the Image

Mount install.wim​ to the 3_Mount​ directory (must be empty):

Dism /Mount-Image /ImageFile:"C:\WIM_Project\1_ISO_Source\sources\install.wim" /Index:1 /MountDir:"C:\WIM_Project\3_Mount"  

4.2 Step 1: Integrate SSU (Critical!)

SSU is the foundation for subsequent updates and must be installed first:

Dism /Image:"C:\WIM_Project\3_Mount" /Add-Package /PackagePath:"C:\WIM_Project\2_Updates\SSU\01-SSU-19041.3562-x64.msu"  

4.3 Step 2: Integrate LCU

After installing the SSU, integrate the LCU:

Dism /Image:"C:\WIM_Project\3_Mount" /Add-Package /PackagePath:"C:\WIM_Project\2_Updates\LCU_NET\02-LCU-KB5062554-x64.msu"  

4.4 Step 3: Integrate.NET Updates and Enable Features

V. Image Cleanup—Streamlining and Optimization

After integrating updates, clean up redundant components to reduce image size. Note: Some operations are irreversible!

5.1 Routine Cleanup: ​

Remove outdated components replaced in WinSxS (safe and reversible):

Dism /Image:"C:\WIM_Project\3_Mount" /Cleanup-Image /StartComponentCleanup  

5.2 Deep Cleanup: ​ (Irreversible!)

Solidify current updates as the system baseline—irreversible (cannot uninstall updates), but maximizes size reduction:

Dism /Image:"C:\WIM_Project\3_Mount" /Cleanup-Image /StartComponentCleanup /ResetBase  

5.3 Commit Changes and Unmount the Image

After cleanup, save the modifications back to install.wim​ and release the mount point:

Dism /Unmount-Image /MountDir:"C:\WIM_Project\3_Mount" /Commit  

VI. Create a Bootable ISO—Compatible with BIOS and UEFI

Use the oscdimg​ tool from ADK to package the updated install.wim​ and original files into a dual-boot ISO:

6.1 ​ Command Parsing

oscdimg.exe -m -o -u2 -udfver102 -bootdata:2#p0,e,b"C:\WIM_Project\1_ISO_Source\boot\etfsboot.com"#pEF,e,b"C:\WIM_Project\1_ISO_Source\efi\microsoft\boot\efisys.bin" "C:\WIM_Project\1_ISO_Source" "C:\WIM_Project\4_ISO_Output\Win10_LTSC_2021_x64_Updated.iso"  

6.2 Verify the ISO

After creation, verify the ISO's bootability:

你可能也感兴趣

加载评论…