A few days ago in the Windows OS Automatic deployment of various tests, with the Microsoft free WDS function, because it is the test, in the capture template, the parameters are basically unchanged, in order to avoid each capture template need to manually typing parameters, Here I use the auto answer file to write the parameters to the WDS capture image in advance to automate capturing the mirror.
1. First set up an empty folder in any letter, naming random
2. Mount the capture image using the system's own DISM image modification tool, command format
Dism/mount-wim/wimfile:d:imagewin7.wim/index:1/mountdir:c:mounted
Here, D:imagewin7.wim is your capture mirror path, c:mounted is the empty directory path and directory name you created previously
3. After the successful mirror mount, the c:mounted can be opened, the inside is mirrored content, under%windir%system32 find wdscapture.inf modify parameter file and save, as shown:
4. The modification parameters are as follows:
Volume parameters captured by [Capture]
Unattended=yes
Volumetocapture=c:sysprep after the letter
Systemroot=windows Default
Imagename= "Windows7" Mirror Name
imagedescription= "Windows 7" description
Destinationfile=d:win7capture.wim Mirror after capture of the storage point
Overwrite=yes
[ExclusionList]//Exclude file list (ie not capture files)
$ntfs. Log
Hiberfil.sys
Pagefile.sys
"System Volume Information"
RECYCLER
Winpepge.sys
%systemroot%csc
[WDS]//wds Server-related information (can not be filled in, uploadtowdsserver=no, trailing parameters are empty)
Uploadtowdsserver=yes
wdsservername=10.0.0.112 WDS Server address
wdsimagegroup= "ImageGroup1" Mirror Group name
Username=administrator WDS has remote access and write permissions to users
Domain=dem. tese.com Domain Name
Password=p@ssw0rd Remote Access User's password
Deletelocalwimonsuccess=no whether to delete the local mirror
5. After the parameter is finished, save it
6. Save the changes to the mirror, the command format is as follows: Dism/unmount-wim/mountdir:c:
Mounted/commit
Here, c:mounted is the directory of the Mounted mirrors
7. Add the mirror you have just modified to the start image group of WDS, in this way, the next time you start capturing the image, the capture process needs to fill in the parameters, the system will automatically be based on your answer file set parameters automatically completed, if in the process of capture automatically restart the latter catch to half automatically restart, Indicate that your parameters are not filled out correctly and need to be verified.