Auto setup or config Your Windows by One Click.
Suitable: Win11/Win10, Win7. x64 CPU arch.
This README is also available in languages: 🇨🇳 简体中文
- Git clone or download this repository into your U disk.
- Copy or learn the config files from
samples/
- Enable or tweak features in
configuration.ps1
- Add packages into
packages/
Please read the documentation: Audit Mode
flowchart TD
subgraph target [New Machine]
newsys[New Installed Windows] -- press <b>Ctrl + Shift + F3</b> at startpage --> auditmode[Audit Mode]
subgraph sysprep [ ]
direction LR
auditmode --> generlized[Generlized Boilerplate System]
end
instance[Instanced New System]
end
subgraph U disk
fetch[fetch this repository] -- get packages and config --> bundle[Prepared Bundle]
generlized -. capture .-> image[Personalized System Image]
end
bundle -- <b>setup.cmd</b> --o sysprep
generlized --> instance
image -. apply .-> instance
flowchart TB
fetch[fetch this repository] -- get packages and config --> bundle[Prepared Bundle]
subgraph config [Target Machine]
old[Current System] -- <b>setup.cmd</b> --> new[Optimized System]
end
bundle --o config
DISCLAIMER: You're doing this at your own risk, I am not responsible for any data loss or damage that may occur.
Binary Assets ...
System Images:
Get U disk image writer:
-
Ventoy: multi images boot support
-
Rufus: only single image, more options and better compatibility
find
*p.exe
at Official GitHub Release
Encapsule as an Image ...
-
Generalized shutdown in
sysprep.exe
-
Boot into Recovery Mode or WinPE in USB
-
Check or mount driver letters, list a table:
echo lis vol | diskpart
-
Set temporary directory to attain enough disk space:
set tmp=d:\tmp mkdir %tmp%
-
Capture command: (open README.md by notepad.exe to copy code)
start cmd /k dism /capture-image /verify /checkintegrity /name:mysys /compress:max /capturedir:c: /imagefile:d:\mywin.esd
Command Parameters | Usage |
---|---|
start cmd /k | run it in new command prompt |
/capturedir | the system partition letter |
/imagefile | type your full backup image path |
/name | customized Name |
/compress | (optional) max,fast,none |
/verify /checkintegrity | (optional) |
.wim
is a legacy compatible and low compression format
.esd
is the new high compression ratio format with long compression time
Restore from an Image ...
-
Boot into Recovery Mode or WinPE in USB
-
Mount the target system partition as C drive
-
Restore command: (open README.md by notepad.exe to copy code)
dism /apply-image /index:1 /verify /applydir:c: /imagefile:D:\backup\system.esd
Attention:
/index
should be 1 as default- optional:
/verify
- optional:
/compact
slim down system data, from 40G~ to 20G~ as usual
Adding a UEFI boot entry:
mountvol u: /s
bcdboot c:\windows /s u:
Alipay | WeChat Pay |
---|---|