Giter Club home page Giter Club logo

scripts-install-windows's Introduction

scripts pour auto install windows

script flemmard si sur linux

curl https://raw.githubusercontent.com/yfabrik/scripts-install-windows/main/script-flemmard.sh |bash

sur clé usb

créer un clé bootable permettant d'installer "automatiquement"

nécéssite :

Avec ventoy creer une clé en laissant un espace (18Go mini)
formatter l'espace laissé à la fin de la clé USB en exFAT, le nommer SPACE
on a 3 partition: SPACE, VENTOY, VENTOYEFI, on touche pas à VENTOYEFI

dans SPACE mettre:

  • Ce repository (git clone https://github.com/yfabrik/scripts-install-windows)
  • les images custom windows famille.wim/bureau.wim

dans VENTOY mettre :

  • une images ISO winPE et la cloner pour chaque installation cutom (1 image pour famille, 1 image pour bureau)
  • créer des archives .7z pour chaque installation custom avec l'arborescence:
windows/
└── system32/
    └── startnet.cmd

contenu du starnet.cmd pour bureau.wim:

::startnet.cmd
wpeinit
for %%a in (d e f g h i j k l m n o p q r s t u v w x y z) do @vol %%a: 2>nul |find "SPACE" >nul && set drv=%%a:
call %drv%\scripts-install-windows\scripts\auto-install.bat %drv%\bureau.wim
call %drv%\scripts-install-windows\scripts\cp-files.bat

pour famille.wim:

::startnet.cmd
wpeinit
for %%a in (d e f g h i j k l m n o p q r s t u v w x y z) do @vol %%a: 2>nul |find "SPACE" >nul && set drv=%%a:
call %drv%\scripts-install-windows\scripts\auto-install.bat %drv%\famille.wim
copy /y %drv%\scripts-install-windows\files\unattend.xml W:\Windows\System32\Sysprep\unattend.xml

Ventoy a un plugin pour injecter des fichiers dans l'os choisi
lancer ventoyplugson en lui donnant l'emplacement de la clé USB (sudo ./VentoyPlugson.sh /dev/sdb)
utiliser le injection plugin et lier le winpe_bureau au bureau.7z et le winpe_famille au famille.7z

avec serveur pxe

sur le srv samba du serveur y'a le fichier winpeshl.ini

[launchApps]
"install.bat"

qui sert a lancer les install.bat bureau:

wpeinit
net use Y: \\srvpxe\install
call Y:\scripts\external\auto-install.bat Y:\disks\win.wim.d\capture-withapp.wim
call Y:\scripts\external\cp-files.bat

famille:

wpeinit
net use Y: \\srvpxe\install
call Y:\scripts\external\auto-install.bat Y:\disks\win.wim.d\famille.wim
copy /y Y:\scripts\external\autounattend.xml W:\windows\system32\sysprep\unattend.xml

et apres c'est les memes scripts que sur SPACE faut juste les mettre au bons endroits

nouvelle façon: on peut utiliser le install.bat qu'on rename en startnet.cmd dans le install.ipxe

:bureau
initrd --name startnet.cmd ${scripts}/startnet-bureau.cmd startnet.cmd
goto massdriver

scripts-install-windows's People

Contributors

yfabrik avatar

Watchers

 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.