Newer
Older
SET /P QUESTIONCLE=Activer sur KMS unistra (K)? (Toute autre touche continuera sans activation)
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
IF /I %QUESTIONCLE% EQU K GOTO KMS
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 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"
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
curl -o %TEMP%\dell-command-update.exe -L https://src.koda.cnrs.fr/stephane.laborie.7/windows-ventoy-auto-install/-/raw/main/Files/Dell-Command-Update-Windows-Universal-Application_JCVW3_WIN_5.1.0_A00.EXE
START /WAIT %TEMP%\dell-command-update.exe /s