Auto-commit: 2025-10-31 08:55:48
This commit is contained in:
7
SDA/DiskpartWindows10/BIOS.txt
Normal file
7
SDA/DiskpartWindows10/BIOS.txt
Normal file
@@ -0,0 +1,7 @@
|
||||
select disk 0
|
||||
clean
|
||||
create partition primary
|
||||
select partition 1
|
||||
active
|
||||
assign
|
||||
exit
|
||||
29
SDA/DiskpartWindows10/Disk.au3
Normal file
29
SDA/DiskpartWindows10/Disk.au3
Normal file
@@ -0,0 +1,29 @@
|
||||
|
||||
#include <MsgBoxConstants.au3>
|
||||
|
||||
Local $iPID = RunWait("winpeinit", "", @SW_SHOWMAXIMIZED)
|
||||
|
||||
|
||||
Local $sVar = RegRead("HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control", "PEFirmwareType")
|
||||
|
||||
|
||||
If $sVar = 1 Then
|
||||
MsgBox($MB_SYSTEMMODAL, "Diskpart","BIOS",3)
|
||||
Local $iPID = RunWait("diskpart /s bios.txt", "", @SW_SHOWMAXIMIZED)
|
||||
Else
|
||||
MsgBox($MB_SYSTEMMODAL, "Diskpart","UEFI",3)
|
||||
Local $iPID = RunWait("diskpart /s UEFI.txt", "", @SW_SHOWMAXIMIZED)
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
BIN
SDA/DiskpartWindows10/Disk_x64.exe
Normal file
BIN
SDA/DiskpartWindows10/Disk_x64.exe
Normal file
Binary file not shown.
BIN
SDA/DiskpartWindows10/Disk_x86.exe
Normal file
BIN
SDA/DiskpartWindows10/Disk_x86.exe
Normal file
Binary file not shown.
14
SDA/DiskpartWindows10/Partition.bat
Normal file
14
SDA/DiskpartWindows10/Partition.bat
Normal file
@@ -0,0 +1,14 @@
|
||||
wpeutil UpdateBootInfo
|
||||
|
||||
for /f "tokens=2*" %%A in ('REG QUERY "HKLM\System\CurrentControlSet\Control" /v PEFirmwareType') DO (
|
||||
for %%F in (%%B) do (
|
||||
set Firmware=%%F
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
|
||||
If %Firmware%==0x1 Diskpart /s "%~dp0BIOS.TXT"
|
||||
If %Firmware%==0x2 Diskpart /s "%~dp0UEFI.TXT"
|
||||
|
||||
pause
|
||||
10
SDA/DiskpartWindows10/UEFI.txt
Normal file
10
SDA/DiskpartWindows10/UEFI.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
select disk 0
|
||||
clean
|
||||
convert gpt
|
||||
create partition efi size=100
|
||||
format quick fs=fat32 label="System"
|
||||
assign letter="S"
|
||||
create partition msr size=128
|
||||
create partition primary
|
||||
format quick fs=ntfs label="Windows"
|
||||
assign letter="C"
|
||||
5
SDA/DiskpartWindows10/readme.md
Normal file
5
SDA/DiskpartWindows10/readme.md
Normal file
@@ -0,0 +1,5 @@
|
||||
# Documentation
|
||||
|
||||
For the full documentation, please visit the link below:
|
||||
|
||||
[Pre-installation Diskpart Tasks with SDA](https://blog.wuibaille.fr/2023/04/sda-taches-de-pre-installation-diskpart/)
|
||||
Reference in New Issue
Block a user