.
This commit is contained in:
parent
8ef035d16d
commit
1de54e52cc
@ -73,24 +73,22 @@ set answer=
|
||||
:CONT
|
||||
|
||||
rem ask for user ...
|
||||
set MYUSER=testuser
|
||||
set MYUSER=localadmin
|
||||
if "@%support_user%" NEQ "@" (
|
||||
set MYUSER=%support_user%
|
||||
) else (
|
||||
echo.
|
||||
set /p MYUSER="Username (%MYUSER%)? "
|
||||
)
|
||||
echo MYUSER = %MYUSER%
|
||||
|
||||
rem ask for real name ...
|
||||
set MYNAME=Test User
|
||||
set MYNAME=Local Administrator
|
||||
if "@%support_name%" NEQ "@" (
|
||||
set MYNAME=%support_name%
|
||||
) else (
|
||||
echo.
|
||||
set /p MYNAME="Display Name (%MYNAME%)? "
|
||||
)
|
||||
echo MYNAME = %MYNAME%
|
||||
|
||||
rem ask for a password ...
|
||||
set MYPASS=
|
||||
@ -100,7 +98,6 @@ if "@%support_password%" NEQ "@" (
|
||||
echo.
|
||||
set /p MYPASS="Password (not set)? "
|
||||
)
|
||||
echo MYPASS = %MYPASS%
|
||||
|
||||
echo.
|
||||
tools\searchreplace %USBDRIVE%\autounattend.xml ___MYUSER___ "%MYUSER%"
|
||||
|
179
README.md
179
README.md
@ -428,6 +428,7 @@ Many things will be done here:
|
||||
|
||||
**Please start your cmd.exe with "Run as Administrator"!**
|
||||
|
||||
*HINT: In case you need a "standard" windows media without modifications just skip the following 3 steps and proceed directly to the script "06_FormatStick.cmd" (chapter 9).*
|
||||
|
||||
## 8.1 Create a boot image
|
||||
|
||||
@ -455,8 +456,9 @@ This will create/prepare the new "install.wim" image.
|
||||
|
||||
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.
|
||||
**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
|
||||
@ -478,7 +480,7 @@ This has to be done in 3 steps:
|
||||
- copy everything (custom image, software, config) to the media
|
||||
|
||||
|
||||
## 9.1 Format an USB stick or a disk
|
||||
## 9.1 Format the 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).
|
||||
|
||||
@ -489,7 +491,7 @@ cd /D %USERPROFILE%\workspace\git\w10install
|
||||
|
||||
```
|
||||
|
||||
Choose the correct drive (this should be drive 1 or 2)
|
||||
*Choose the correct drive (this should be drive 1 or 2)*
|
||||
|
||||
**WARNING: Please be careful and make absolutely sure NOT TO DELETE any important data!**
|
||||
|
||||
@ -557,56 +559,16 @@ USB stick formatted.
|
||||
|
||||
```
|
||||
|
||||
## 9.2 Copy the everything to the USB stick or a disk
|
||||
|
||||
## 9.2 Prepare the USB stick
|
||||
Now it's time to copy the custom windows images, all scripts and additional 3rd party software to our boot media (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.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.
|
||||
*Notice: In the example we use drive "E:". Please make sure to use the correct drive letter for your USB drive!*
|
||||
|
||||
Execute:
|
||||
```dos
|
||||
cd /D %USERPROFILE%\workspace\git\w10install
|
||||
07_PrepareStick.cmd D: software\Win10_20H2_English_x64.iso
|
||||
|
||||
```
|
||||
|
||||
HINT: In the example we use drive "D:". Please make sure to use the correct drive letter for your USB drive!
|
||||
|
||||
|
||||
Example run:
|
||||
```text
|
||||
====================
|
||||
Create USB Stick ...
|
||||
====================
|
||||
using drive D: ...
|
||||
using image C:\Users\support\workspace\git\w10install\software\Win10_20H2_English_x64.iso ...
|
||||
mounting disk image (iso) with powershell ...
|
||||
|
||||
[...]
|
||||
|
||||
copying files from image to targetpath D: ...
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
ROBOCOPY :: Robust File Copy for Windows
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
[...]
|
||||
|
||||
unmounting disk image (iso) ...
|
||||
|
||||
[...]
|
||||
|
||||
READY.
|
||||
|
||||
```
|
||||
|
||||
## 9.3 Copy custom image to boot media
|
||||
|
||||
Now it's time to copy the custom windows image, alls scripts and additional 3rd party software to our boot media (USB stick).
|
||||
|
||||
Execute:
|
||||
```dos
|
||||
cd /D %USERPROFILE%\workspace\git\w10install
|
||||
08_CopyWIM2Stick.cmd D:
|
||||
07_Copy2Stick.cmd E:
|
||||
|
||||
```
|
||||
|
||||
@ -614,43 +576,110 @@ IMPORTANT HINT: the script will ask for UEFI or BIOS mode. This means: In case y
|
||||
|
||||
Example run:
|
||||
```
|
||||
=====================
|
||||
Prepare USB Stick ...
|
||||
=====================
|
||||
using drive D: ...
|
||||
searching for SCRIPT settings ...
|
||||
OK. Loading SCRIPT settings ...
|
||||
searching for COMPANY settings ...
|
||||
OK. Loading COMPANY settings ...
|
||||
|
||||
=================================
|
||||
Copying all data to USB Stick ...
|
||||
=================================
|
||||
|
||||
using drive e: ...
|
||||
BIOS or UEFI setup (B/U)? b
|
||||
selected: BIOS
|
||||
1 file(s) copied.
|
||||
|
||||
copying [ boot.wim ] to drive D: ...
|
||||
working on [ e:\autounattend.xml ] and replacing string [ ___MYUSER___ ] With [ support ] ...
|
||||
working on [ e:\autounattend.xml ] and replacing string [ ___MYNAME___ ] With [ Exabyte Support ] ...
|
||||
working on [ e:\autounattend.xml ] and replacing string [ ___MYPASS___ ] With [ ******** ] ...
|
||||
working on [ e:\autounattend.xml ] and replacing string [ ___MYLANG___ ] With [ de-DE ] ...
|
||||
copying all files in [ c:\TEMP\W10 ] to drive e: ...
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
ROBOCOPY :: Robust File Copy for Windows
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
Started : Montag, 2. Januar 2023 22:26:03
|
||||
Source : c:\TEMP\W10\
|
||||
Dest = E:\
|
||||
|
||||
Files : *.*
|
||||
|
||||
Options : *.* /256 /NDL /S /E /DCOPY:DA /COPY:DAT /PURGE /MIR /J /XX /R:10 /W:30
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
|
||||
100% New File 128 c:\TEMP\W10\autorun.inf
|
||||
[...]
|
||||
100% New File 3584 c:\TEMP\W10\support\logging\en-us\actionqueueetw.dll.mui
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
|
||||
Total Copied Skipped Mismatch FAILED Extras
|
||||
Dirs : 85 84 1 0 0 1
|
||||
Files : 900 900 0 0 0 1
|
||||
Bytes : 5.727 g 5.727 g 0 0 0 7.7 k
|
||||
Times : 0:00:39 0:00:33 0:00:00 0:00:06
|
||||
|
||||
|
||||
Speed : 184186912 Bytes/sec.
|
||||
Speed : 10539.259 MegaBytes/min.
|
||||
Ended : Montag, 2. Januar 2023 22:26:43
|
||||
|
||||
|
||||
copying folder [ tools ] to drive e: ...
|
||||
|
||||
100% New File 22016 C:\Users\mschmidt\workspace\git\WINDOWS\w10install\tools\allpull.exe
|
||||
[...]
|
||||
|
||||
copying [ install_FINAL.esd ] to drive D: ...
|
||||
copying folder [ software ] to E:\tools ...
|
||||
|
||||
100% New File 1.6 m C:\Users\mschmidt\workspace\git\WINDOWS\w10install\software\7z-setup.msi
|
||||
[...]
|
||||
|
||||
1 file(s) moved.
|
||||
1 file(s) moved.
|
||||
copying folder [ drivers ] to E:\tools ...
|
||||
|
||||
copying folder [ tools ] to drive D: ...
|
||||
100% New File 488 C:\Users\mschmidt\workspace\git\WINDOWS\w10install\drivers\install-archerT5E-bluetooth.cmd
|
||||
[...]
|
||||
|
||||
copying folder [ software ] to D:\tools ...
|
||||
copying folder [ scripts ] to E:\tools ...
|
||||
|
||||
100% New File 5161 C:\Users\mschmidt\workspace\git\WINDOWS\w10install\scripts\autoconfig-all.cmd
|
||||
[...]
|
||||
|
||||
copying folder [ scripts ] to D:\tools ...
|
||||
copying folder [ source ] to E:\tools ...
|
||||
|
||||
100% New File 2123 C:\Users\mschmidt\workspace\git\WINDOWS\w10install\source\allpull.pb
|
||||
[...]
|
||||
|
||||
copying folder [ source ] to D:\tools ...
|
||||
copying folder [ optional ] to E:\tools ...
|
||||
|
||||
100% New File 456 C:\Users\mschmidt\workspace\git\WINDOWS\w10install\optional\install-antivir.cmd
|
||||
[...]
|
||||
|
||||
copying folder [ optional ] to D:\tools ...
|
||||
copying folder [ company ] to E:\tools ...
|
||||
|
||||
100% New File 152 C:\Users\mschmidt\workspace\git\WINDOWS\w10install\company\ftpsettings.cmd
|
||||
[...]
|
||||
|
||||
copying custom setup script to D: ...
|
||||
copying folder [ apps ] to E:\tools ...
|
||||
|
||||
100% New File 70 C:\Users\mschmidt\workspace\git\WINDOWS\w10install\apps\apps.txt
|
||||
[...]
|
||||
|
||||
copying settings file to drive E: ...
|
||||
1 file(s) copied.
|
||||
|
||||
copying custom setup script to E: ...
|
||||
1 file(s) copied.
|
||||
|
||||
putting tools-copy script to E: ...
|
||||
1 file(s) copied.
|
||||
|
||||
======
|
||||
READY.
|
||||
======
|
||||
|
||||
```
|
||||
|
||||
@ -659,22 +688,23 @@ READY.
|
||||
**Your customized windows image for UNATTENDED installation is READY now. Remove the USB stick and put it into a PC you want to install.**
|
||||
|
||||
|
||||
## 9.4 Create an ISO image
|
||||
## 9.3 Create an ISO image
|
||||
|
||||
In case you need an ISO image you can create it with the following command:
|
||||
|
||||
```dos
|
||||
cd /D %USERPROFILE%\workspace\git\w10install
|
||||
09_MakeIso.cmd D:
|
||||
08_MakeISOfromStick.cm E:
|
||||
|
||||
```
|
||||
|
||||
Example run:
|
||||
```text
|
||||
===================
|
||||
Make ISO file ...
|
||||
===================
|
||||
================================
|
||||
Make ISO file from USB stick...
|
||||
================================
|
||||
|
||||
using drive [ D: ] ...
|
||||
using drive [ E: ] ...
|
||||
|
||||
OSCDIMG 2.56 CD-ROM and DVD-ROM Premastering Utility
|
||||
Copyright (C) Microsoft, 1993-2012. All rights reserved.
|
||||
@ -682,24 +712,27 @@ Licensed only for producing Microsoft authorized content.
|
||||
|
||||
|
||||
Scanning source tree (1000 files in 93 directories)
|
||||
Scanning source tree complete (1090 files in 97 directories)
|
||||
Scanning source tree complete (1209 files in 106 directories)
|
||||
|
||||
Computing directory information complete
|
||||
|
||||
Image file is 5697568768 bytes
|
||||
Image file is 11892326400 bytes
|
||||
|
||||
Writing 1090 files in 97 directories to c:\temp\WIN10-AUTO.iso
|
||||
Writing 1209 files in 106 directories to c:\temp\WIN10-AUTO.iso
|
||||
|
||||
100% complete
|
||||
|
||||
Final image file is 5699987456 bytes
|
||||
Final image file is 11895015424 bytes
|
||||
|
||||
Done.
|
||||
|
||||
======
|
||||
READY.
|
||||
======
|
||||
|
||||
```
|
||||
|
||||
Having an ISO image is useful for testing purposes or it maybe needed for a special use case - for e.g.: you want to install the system on some machine in the datacenter and the remote console needs an ISO image as boot media.
|
||||
|
||||
*Notice: This step is one of the reasons why we need the Windows ADK. The binary "oscdimg" is included in this Microsoft package. "oscdimg" is used by "07_MakeIso.cmd" for creating the ISO image.*
|
||||
*Notice: This step is one of the reasons why we need the Windows ADK. The binary "oscdimg" is included in this Microsoft package. "oscdimg" is used by "08_MakeISOfromStick.cm" for creating the ISO image.*
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user