Giter Club home page Giter Club logo

mysysprep's Introduction

🪟 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

mysysprep's People

Stargazers

eplord avatar Kerry avatar Jason Burton avatar  avatar Cheng-Yang, Li avatar Sanbroz avatar  avatar Vera Rei avatar ZQ avatar Mikhail avatar  avatar 碳黑橙子 avatar Kitsune avatar 万能青年 avatar kiki avatar  avatar Paweł Zatoka avatar ZGQ Inc. avatar haoenz avatar shunia avatar Guoqing Zou avatar Alex Espinoza avatar  avatar  avatar Aliseph avatar finne avatar 咕咕乔 avatar  avatar pedoc avatar 坤子 avatar beastskynews avatar liber avatar lipc avatar Neo Sam avatar karl avatar  avatar  avatar antness avatar Sunset Mikoto avatar  avatar nibiru avatar  avatar  avatar  avatar

Watchers

坤子 avatar Neo Sam avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.