Skip to content
Snippets Groups Projects
Commit 56659191 authored by LABORIE Stéphane's avatar LABORIE Stéphane
Browse files

commit initial

parents
No related branches found
No related tags found
No related merge requests found
File added
@echo on
setlocal
:: Activation de Windows
SET /P QUESTIONCLE=Activer sur KMS unistra (K) ou serveurs Microsoft (M) (Toute autre touche continuera sans activation)?
IF /I %QUESTIONCLE% EQU K GOTO KMS
IF /I %QUESTIONCLE% EQU M GOTO MICROSOFT
GOTO DRIVERS
:KMS
SET /P QUESTIONCLE=Changer la cle Windows par une cle KMS Enterprise (E), Pro (P) (Toute autre touche continuera sans activation)?
IF /I %QUESTIONCLE% EQU E GOTO ENTERPRISE
IF /I %QUESTIONCLE% EQU P GOTO PRO
GOTO DRIVERS
:ENTERPRISE
cscript \windows\system32\slmgr.vbs /upk
cscript \windows\system32\slmgr.vbs /cpky
cscript \windows\system32\slmgr.vbs /ipk M7XTQ-FN8P6-TTKYV-9D4CC-J462D
GOTO SUITE
:PRO
cscript \windows\system32\slmgr.vbs /upk
cscript \windows\system32\slmgr.vbs /cpky
cscript \windows\system32\slmgr.vbs /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX
GOTO SUITE
:SUITE
cscript \windows\system32\slmgr.vbs -skms snkms.unistra.fr
cscript \windows\system32\slmgr.vbs -ato
echo "Appuyez sur une touche pour continuer"
GOTO DRIVERS
:DRIVERS
:: On vérifie si on est connecté à internet
echo "Verification de la connection internet"
ping www.mri.cnrs.fr -n 1 -w 1000
if errorlevel 1 goto NOINTERNET
echo "Ok on continue"
:: On cherche le fabricant du PC
for /f "tokens=1* delims==" %%a in (
'wmic computersystem get manufacturer /value'
) do for /f "delims=" %%c in ("%%~b") do set "manufacturer=%%c"
:: On cherche la cle ventoy et on recupere sa lettre de lecteur
:: for /f %%D in ('wmic volume get DriveLetter^, Label ^| find "Ventoy"') do set usb=%%D
if not "x%manufacturer:Dell=%"=="x%manufacturer%" GOTO DELL
if not "x%manufacturer:HP=%"=="x%manufacturer%" GOTO HP
GOTO UNKNOWN
:NOINTERNET
echo "Pas de connection à internet, appuyez sur une touche quand la connection sera établie"
pause
GOTO DRIVERS
:DELL
curl -o %TEMP%\dotnet-4.8.exe -L https://go.microsoft.com/fwlink/?linkid=2088631
copy /Y "%usb%\Logiciels et drivers\DELL\Dell-Command-Update-Windows-Universal-Application_JCVW3_WIN_5.1.0_A00.exe" %TEMP%\
START /WAIT %TEMP%\dotnet-4.8.exe /passive /norestart
START /WAIT %TEMP%\Dell-Command-Update-Windows-Universal-Application_JCVW3_WIN_5.1.0_A00.exe /s
START /WAIT "%programfiles%\Dell\CommandUpdate\dcu-cli.exe" /driverInstall
shutdown /r /F /T 0
GOTO EOF
:HP
:UNKNOWN
echo "Fabricant PC inconnu
:EOF
pause
This diff is collapsed.
{
"control":[
{ "VTOY_DEFAULT_MENU_MODE": "1" },
{ "VTOY_TREE_VIEW_MENU_STYLE": "1" },
{ "VTOY_WIN11_BYPASS_CHECK": "0" },
{ "VTOY_DEFAULT_KBD_LAYOUT": "AZERTY" },
{ "VTOY_MENU_LANGUAGE": "fr_FR" },
{ "VTOY_DEFAULT_SEARCH_ROOT": "/_ISO" }
],
"auto_install":[
{
"image": "/_ISO/Windows 10/PRO/Win10_22H2_French_x64v1.iso",
"template":[
"/ventoy/Scripts/windows_10_PRO_autoinstall.xml"
]
}
]
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment