Automated Windows installation and Telemetry removal.
Go to file
Michael H.G. Schmidt 2494f0d08d .
2021-02-20 18:17:27 +01:00
iso . 2021-01-10 15:49:37 +01:00
scripts . 2021-02-19 23:05:22 +01:00
software . 2021-01-27 22:05:17 +01:00
source . 2021-01-10 15:49:37 +01:00
tools . 2021-02-14 15:29:16 +01:00
wim . 2021-02-14 15:29:16 +01:00
.gitignore . 2021-02-07 22:57:33 +01:00
autounattend_BIOS.xml . 2021-01-12 15:30:58 +01:00
autounattend_UEFI.xml . 2021-01-12 15:30:58 +01:00
CustomSetup.cmd . 2021-02-13 10:46:20 +01:00
MakeIso.cmd . 2021-01-29 11:57:12 +01:00
PrepareStick.cmd . 2021-01-29 11:57:12 +01:00
README.md . 2021-02-20 18:17:27 +01:00

please read this to get started!

IMPORTANT: This whole thing was crafted and tested with Windows 10 version 20H2.
This is actually the only supported version!

What will you need to run this?

  • a working Windows 10 installation
  • a working commandline GIT client
  • a windows ISO image or Media creator
  • some tools from Microsoft
  • some other tools (curl, 7zip etc. pp.)

1. Setup your workspace

1.1 Create some directories

open cmd.exe and execute:

mkdir c:\tools
mkdir c:\temp

1.2 Set needed environment variables

set TOOLS=c:\tools
set T=c:\TEMP

Make them permanent (... in case you open a new cmd window):

setx TOOLS c:\tools
setx T c:\TEMP

2. Get/Install basic tools and software

2.1 Get 7-zip

7-ZIP Website

Download: https://www.7-zip.org/a/7z1900-x64.exe
... and save the executable in folder "software".

Execute the self extracting file:

software\7z1900-x64.exe

Save the contents to: c:\temp.

After extracting execute:

move /Y %T%\7z.exe %TOOLS%
move /Y %T%\7z.dll %TOOLS%
del /S /Q /A %T%\*.* 1>nul
rd /S /Q %T%\Lang

2.2 Get curl

CURL Website

Download: https://curl.se/windows/dl-7.75.0_3/curl-7.75.0_3-win64-mingw.zip
... and save the executable in folder "software".

Extract: the self extracting file:

%TOOLS%\7z -y -o%T%\curl e software\curl-7.75.0_3-win64-mingw.zip
move /Y %T%\curl\curl.exe %TOOLS%
move /Y %T%\curl\libcurl*.dll %TOOLS%
move /Y %T%\curl\curl-ca-bundle.crt %TOOLS%
rd /S /Q %T%\curl

2.3 Install GIT

GIT for windows website

Download with curl to software folder:

set URL=https://github.com/git-for-windows/git/releases/download/v2.30.1.windows.1
set EXE=Git-2.30.1-64-bit.exe
%TOOLS%\curl -L %URL%/%EXE% --output software\%EXE%

Create the GIT configfile for the setup program (use notepad):

[Setup]
Lang=default
Dir=c:\tools\git
Group=Git
NoIcons=1
SetupType=default
Components=gitlfs
Tasks=
EditorOption=CustomEditor
CustomEditorPath=notepad.exe
DefaultBranchOption= 
PathOption=CmdTools
SSHOption=OpenSSH
TortoiseOption=false
CURLOption=OpenSSL
CRLFOption=CRLFCommitAsIs
BashTerminalOption=ConHost
GitPullBehaviorOption=Merge
UseCredentialManager=Disabled
PerformanceTweaksFSCache=Disabled
EnableSymlinks=Disabled
EnablePseudoConsoleSupport=Disabled

Save it to c:\temp\install-git.txt

Execute the Git setup:

software\%EXE% /LOADINF=c:\temp\install-git.txt /NORESTART /NOCANCEL /SILENT /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS

Cleanup:

del /S /Q /A c:\temp\install-git.txt 1>nul

2.4 Modify system PATH

WARNING!
DO NOT execute this in case you have important contents in your path variable!

Please check you PATH variable with:

echo %PATH%

... and check the contents.
If necessary modify the command below or extend your path variable via the windows settings GUI!

Execute:

set PATH=%SYSTEMROOT%;%SYSTEMROOT%\system32;%SYSTEMROOT%\system32\wbem;%SYSTEMROOT%\system32\WindowsPowerShell\v1.0;%LOCALAPPDATA%\Microsoft\WindowsApps;%TOOLS%;%TOOLS%\git\bin;%TOOLS%\git\usr\bin
setx PATH %SYSTEMROOT%;%SYSTEMROOT%\system32;%SYSTEMROOT%\system32\wbem;%SYSTEMROOT%\system32\WindowsPowerShell\v1.0;%LOCALAPPDATA%\Microsoft\WindowsApps;%TOOLS%;%TOOLS%\git\bin;%TOOLS%\git\usr\bin

3 Clone this repository

cd /D %USERPROFILE%
mkdir workspace\github
cd workspace\github
git clone https://github.com/mhgschmidt/w10install.git
cd w10install