From 6ff2395b9e385d4783d456395ed3cfb6612de5fb Mon Sep 17 00:00:00 2001 From: "Michael H.G. Schmidt" Date: Mon, 2 Jan 2023 13:45:56 +0100 Subject: [PATCH] docs --- README.md | 104 +++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 84 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 5e0d8fc..01aa045 100644 --- a/README.md +++ b/README.md @@ -418,29 +418,59 @@ unpack-zipfiles.cmd ``` -# 8. Build the Windows Image for unattended installations +# 8. Build the Windows Images for unattended installations -This is a very long running and CPU intensive task. I recommend a 3 GHZ six core machine with 16 GB RAM. Many things will be done here: +Many things will be done here: - extract the boot image (WIM file) and add tools to provide a boot menu etc. pp. - extract Windows image (WIM file) and choose Windows 10 Pro version - remove all apps from the windows image (except the Store app!) -- remove many packages from the windows image (including defender!) -- etc. pp. -**Start cmd.exe as ADMINISTRATOR!** +**Please start your cmd.exe with "Run as Administrator"!** + + +## 8.1 Create a boot image Execute: ```dos cd /D %USERPROFILE%\workspace\git\w10install -03_MakeAll.cmd +03_MakeBoot.cmd ``` - -Be patient: This whole process could run 1 - 3 hours. +This will create the new "boot.wim" image. -# 9. Create Boot media +## 8.2 Prepare the new windows image + +Execute: +```dos +cd /D %USERPROFILE%\workspace\git\w10install +04_PrepareImage.cmd + +``` +This will create/prepare the new "install.wim" image. + + +## 8.3 Edit the Windows image with "NTLite" + +In case you have installed "NTLite" the script "04_PrepareImage.cmd" will start it and you can modify your windows image now. + +WARNING: Be careful what you remove - or you could end up with a non working windows installation. +SUGGESTION: Before modifying your windows image (and maybe screwing up everything) go through the whole process and test your boot media with a standard image. + + +## 8.4 Finalize the images + +Execute: +```dos +cd /D %USERPROFILE%\workspace\git\w10install +05_FinishImage.cmd + +``` +This script will finish the images and it will also remove all Apps listed in the file "image\apps-to-remove.csv". + + +# 9. Finally create a new boot media This has to be done in 3 steps: - format a media (USB stick) @@ -448,7 +478,7 @@ This has to be done in 3 steps: - copy everything (custom image, software, config) to the media -## 9.1 Format USB stick +## 9.1 Format an USB stick or a disk Please use a fast USB 3 stick. The size should be 16 GB or more (you could use 8 GB but windows images are tending to get bigger and bigger. Additionally: We will copy lots of 3rd party software to the stick). @@ -471,23 +501,57 @@ Format USB Stick ... Showing disk list ... -Microsoft DiskPart version 10.0.19041.610 +Microsoft DiskPart version 10.0.19041.1 Copyright (C) Microsoft Corporation. -On computer: DESKTOP-NN1UC68 +On computer: FIREBIRD Disk ### Status Size Free Dyn Gpt -------- ------------- ------- ------- --- --- - Disk 0 Online 238 GB 1024 KB - Disk 1 Online 14 GB 0 B + Disk 0 Online 232 GB 0 B + Disk 1 Online 465 GB 1024 KB + Disk 2 Online 447 GB 384 GB Leaving DiskPart... -Please select a disk: 1 -OK using disk 1 -Please enter a label for the new disk: W1020H2v1 -WARNING ! This will DELETE ALL data on disk number [ 1 ] +Please select a disk: 2 +OK using disk 2 -REALLY delete disk 1 (Y/N)? y +Please select filesystem (exfat or fat32) [exfat]: +selected: exfat + +IMPORTANT: maximum size for FAT32 is 32768! +Please enter size in MB [max]: 64000 +selected size = 64000 [MB] + +Please enter a label for the new disk: W10-20H2 +WARNING ! This will DELETE ALL data on disk number [ 2 ] + +REALLY delete disk 2 (Y/N)? y + +Microsoft DiskPart version 10.0.19041.1 + +Copyright (C) Microsoft Corporation. +On computer: FIREBIRD + +Disk 2 is now the selected disk. + +DiskPart succeeded in cleaning the disk. + +DiskPart successfully converted the selected disk to MBR format. + +DiskPart succeeded in creating the specified partition. + +Partition 1 is now the selected partition. + + 100 percent completed + +DiskPart successfully formatted the volume. + +DiskPart marked the current partition as active. + +DiskPart successfully assigned the drive letter or mount point. + +Leaving DiskPart... READY. USB stick formatted. @@ -496,7 +560,7 @@ USB stick formatted. ## 9.2 Prepare the USB stick -The next script needs the ISO file again and will prepare the boot media with all needed files EXCEPT the image files (boot.wim & install.esd). In case you need a standard image (unmodified) you will have to use the Microsoft "MediaCreationTool20H2.exe" included in the "software" folder. +The next script needs the ISO file again and will prepare the boot media with all needed files EXCEPT the image files (boot.wim & install.wim). In case you need a standard image (unmodified) you will have to use the Microsoft "MediaCreationTool20H2.exe" included in the "software" folder OR you just add the switch /W to the script call. Execute: ```dos