Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to modify WDS Boot Image by DISM to capture Image automatically

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article is about how DISM modifies WDS startup images to capture images automatically. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

A few days ago, I was doing a variety of tests for the automatic deployment of windows OS, using Microsoft's free WDS function, because it is a test, when capturing the template, the parameters are basically unchanged, in order to avoid manually typing the parameters every time the template is captured, here I use the automatic answer file to write the parameters into the capture image of WDS in advance to automatically capture the mirror.

1. First, create an empty folder on any drive and name it at will.

two。 Use the DISM image modification tool that comes with the system to load the capture image, command format

Dism / mount-wim / wimfile:d:\ image\ win7.wim / index:1 / mountdir:c:\ mounted

Here, d:\ image\ win7.wim is your capture image path, and c:\ mounted is the empty directory path and directory name you created earlier.

3. After the image is mounted successfully, c:\ mounted can be opened, which contains the contents of the image. Find the WDScapture.inf modification parameter file under% windir%\ system32 and save it, as shown below:

4. Modify the parameters as follows:

[Capture] captured volume parameters

Unattended=Yes

VolumeToCapture=C: drive letter after sysprep

SystemRoot=windows default

ImageName= "Windows7" image name

ImageDescription= "Windows 7" description

DestinationFile=D:\ win7Capture.wim image storage point after capture

Overwrite=Yes

[ExclusionList] / / exclude the list of files (that is, files that are not captured)

$ntfs.log

Hiberfil.sys

Pagefile.sys

"System Volume Information"

RECYCLER

Winpepge.sys

% SYSTEMROOT%\ CSC

[WDS] / / related information about WDS server (leave it empty, UploadToWDSServer=NO, and then leave the parameter empty)

UploadToWDSServer=Yes

WDSServerName=10.0.0.112 WDS server address

WDSImageGroup= "ImageGroup1" Mirror Group name

Username=administrator WDS users with remote access and write permissions

Domain=dem.Tese.com domain name

Password of Password=P@ssw0rd remote access user

Whether DeleteLocalWimOnSuccess=No deletes the local image

5. After the parameters are written, you can save them.

6. Save the changes to the image. The command format is as follows: dism / unmount-wim / mountdir:c:\

Mounted / commit

Here, c:\ mounted is the directory where the image is mounted

7. Just add the modified image back to the boot image group of WDS. In this way, the parameters that need to be filled in in the capture process will be automatically completed according to the parameters set by your answer file after the capture image is started next time. If the latter is automatically restarted and half of it is automatically restarted during the capture process, it means that your parameters are entered incorrectly and need to be verified.

Thank you for reading! This is the end of the article on "how DISM modifies the WDS startup image to automatically capture the image". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report