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

post install depuis cle usb

parent 657cbfe9
No related branches found
No related tags found
No related merge requests found
@echo off
:TESTNET
ping free.fr -n 1 -w 1000
if errorlevel 1 goto NOINTERNET
GOTO INTERNETOK
:NOINTERNET
echo Pas de connection internet, appuyez sur une touche quand la connection sera retablie
pause
GOTO TESTNET
:INTERNETOK
curl https://src.koda.cnrs.fr/mri-net/windows-ventoy-auto-install/-/raw/main/Files/autoinstall_w10ltsc.bat | MORE /P > %TEMP%\autoinstall.bat
START %TEMP%\autoinstall.bat
\ No newline at end of file
......@@ -13,8 +13,8 @@
<OSImage>
<InstallFrom>
<MetaData wcm:action="add">
<Key>/IMAGE/NAME</Key>
<Value>Windows 10 Entreprise LTSC</Value>
<Key>/image/index</Key>
<Value>1</Value>
</MetaData>
</InstallFrom>
</OSImage>
......@@ -335,54 +335,10 @@
<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<Order>1</Order>
<CommandLine>cmd.exe /c "&gt;&gt;"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\post_install.cmd" echo @echo off"</CommandLine>
<CommandLine>cmd /q /c "FOR %i IN (C D E F G H I J K L N M O P Q R S T U V W X Y Z) DO IF EXIST %i:\ventoy\ventoy\Files\post_install.cmd cmd /c cp %i:\ventoy\ventoy\Files\post_install.cmd 'C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\post_install.cmd'"</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>2</Order>
<CommandLine>cmd.exe /c "&gt;&gt;"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\post_install.cmd" echo :DRIVERS"</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>3</Order>
<CommandLine>cmd.exe /c "&gt;&gt;"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\post_install.cmd" echo ping free.fr -n 1 -w 1000"</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>4</Order>
<CommandLine>cmd.exe /c "&gt;&gt;"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\post_install.cmd" echo if errorlevel 1 goto NOINTERNET"</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>5</Order>
<CommandLine>cmd.exe /c "&gt;&gt;"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\post_install.cmd" echo GOTO INTERNETOK"</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>6</Order>
<CommandLine>cmd.exe /c "&gt;&gt;"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\post_install.cmd" echo :NOINTERNET"</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>7</Order>
<CommandLine>cmd.exe /c "&gt;&gt;"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\post_install.cmd" echo echo Pas de connection internet, appuyez sur une touche quand la connection sera retablie"</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>8</Order>
<CommandLine>cmd.exe /c "&gt;&gt;"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\post_install.cmd" echo pause"</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>9</Order>
<CommandLine>cmd.exe /c "&gt;&gt;"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\post_install.cmd" echo GOTO DRIVERS"</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>10</Order>
<CommandLine>cmd.exe /c "&gt;&gt;"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\post_install.cmd" echo :INTERNETOK"</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>11</Order>
<CommandLine><![CDATA[cmd.exe /c echo curl https://src.koda.cnrs.fr/mri-net/windows-ventoy-auto-install/-/raw/main/Files/autoinstall_w10ltsc.bat ^| MORE /P ^>%TEMP%\autoinstall.bat >> "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\post_install.cmd"]]></CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>12</Order>
<CommandLine>cmd.exe /c "&gt;&gt;"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\post_install.cmd" echo START %TEMP%\autoinstall.bat"</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>13</Order>
<CommandLine>reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoLogonCount /t REG_DWORD /d 0 /f</CommandLine>
</SynchronousCommand>
</FirstLogonCommands>
......
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