Avant de commencer, réaliser une sauvegarde de vos 2 boot.wim. Il y a un risque de verouiller vos fichiers WIM si l’antivirus scan le c:\mount lors de la fermeture ou si vous laissez un explorateur ou un notepad ouvert
Il faut ouvrir les boot.wim pour modifier:
- le startnet.cmd
- copier l’outil choice.exe dans WinPE
Pour cela voici un batch, il faudra changer le chemin des boot.wim si vous avez réalisé une installation de LANDESK dans un autre chemin
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
md c:\mount Dism /mount-wim /wimfile:"C:\Program Files\LANDesk\ManagementSuite\landesk\vboot\boot.wim" /index:1 /mountdir:c:\mount echo modifier le fichier C:\mount\Windows\System32\startnet.cmd echo copier le c:\windows\syswow64\choice.exe dans C:\mount\Windows\system32 echo fermer l'explorateur windows et notepad pause Dism /unmount-wim /mountdir:c:\mount /commit Dism /mount-wim /wimfile:"C:\Program Files\LANDesk\ManagementSuite\landesk\vboot\boot_x64.wim" /index:1 /mountdir:c:\mount echo modifier le fichier C:\mount\Windows\System32\startnet.cmd echo copier le c:\windows\system32\choice.exe dans C:\mount\Windows\system32 echo fermer l'explorateur windows et notepad pause Dism /unmount-wim /mountdir:c:\mount /commit |
Voici le menu qui faudra ajouter dans startnet.cmd (remplacer le @echo Off par le script ci dessous)
Note : changer le menu en fonction de vos besoins
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
@echo Off ECHO 1: Keyboard = FR ECHO 2: Keyboard = BE ECHO 3: Keyboard = DE ECHO 4: Keyboard = IT ECHO 5: Keyboard = ES ECHO 6: Keyboard = PT ECHO 7: Keyboard = AU ECHO 9: Keyboard = NZ ECHO 9: Keyboard = EN CHOICE /C 1234567890 /N /T 10 /D 9 /M "Choice keyboard" echo %ERRORLEVEL% IF %ERRORLEVEL% == 1 SET Clavier=040C:0000040C IF %ERRORLEVEL% == 2 SET Clavier=080c:0000080c IF %ERRORLEVEL% == 3 SET Clavier=0407:00000407 IF %ERRORLEVEL% == 4 SET Clavier=0410:00000410 IF %ERRORLEVEL% == 5 SET Clavier=040a:0000040a IF %ERRORLEVEL% == 6 SET Clavier=0816:00000816 IF %ERRORLEVEL% == 7 SET Clavier=0c09:00000409 IF %ERRORLEVEL% == 8 SET Clavier=1409:00000409 IF %ERRORLEVEL% == 9 SET Clavier=0409:00000409 wpeutil setkeyboardlayout %Clavier% |
Cet article n'a pas été revu depuis la publication.
Cet article a été créé par david le 13 novembre 2016.
Laisser un commentaire