Skip to content

Latest commit

 

History

History
146 lines (100 loc) · 4.56 KB

README.md

File metadata and controls

146 lines (100 loc) · 4.56 KB

🪟 Your Windows System Preparation

Auto setup or config Your Windows by One Click.

Screenshot

Suitable: Win11/Win10, Win7. x64 CPU arch.

HackerNews

This README is also available in languages: 🇨🇳 简体中文

🤔 How To Use?

  1. Git clone or download this repository into your U disk.
  2. Copy or learn the config files from samples/
  3. Enable or tweak features in configuration.ps1
  4. Add packages into packages/

🚩 Deploy On New Machine

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
Loading

⚙️ Deploy On Existed System

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
Loading

⚠️ Warning

DISCLAIMER: You're doing this at your own risk, I am not responsible for any data loss or damage that may occur.

🌟 Install a new Windows

Binary Assets ...

System Images:

Get U disk image writer:


💿 Make and Apply a System Image

Encapsule as an Image ...
  1. Generalized shutdown in sysprep.exe

  2. Boot into Recovery Mode or WinPE in USB

  3. Check or mount driver letters, list a table:

    echo lis vol | diskpart
    
  4. Set temporary directory to attain enough disk space:

    set tmp=d:\tmp
    mkdir %tmp%
    
  5. 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 ...
  1. Boot into Recovery Mode or WinPE in USB

  2. Mount the target system partition as C drive

  3. 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:

🧋 Buy me a coffee

Alipay WeChat Pay
Alipay Qrcode WeChat Pay Qrcode