mirror of
https://github.com/ntdevlabs/tiny11builder.git
synced 2024-11-24 04:45:30 +00:00
Add files via upload
This commit is contained in:
parent
eeb3c580e2
commit
af2e6159d0
@ -727,26 +727,22 @@ Write-Host "Copying unattended file for bypassing MS account on OOBE..."
|
|||||||
Copy-Item -Path "$PSScriptRoot\autounattend.xml" -Destination "$mainOSDrive\tiny11\autounattend.xml" -Force >null
|
Copy-Item -Path "$PSScriptRoot\autounattend.xml" -Destination "$mainOSDrive\tiny11\autounattend.xml" -Force >null
|
||||||
|
|
||||||
Write-Host "Creating ISO image..."
|
Write-Host "Creating ISO image..."
|
||||||
# Define the path to the ADK Deployment Tools folder
|
|
||||||
$ADKDepTools = "C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\$hostarchitecture\Oscdimg"
|
$ADKDepTools = "C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\$hostarchitecture\Oscdimg"
|
||||||
$localOSCDIMGPath = "$PSScriptRoot\oscdimg.exe"
|
$localOSCDIMGPath = "$PSScriptRoot\oscdimg.exe"
|
||||||
|
|
||||||
# Check if the ADK Deployment Tools folder exists
|
|
||||||
if ([System.IO.Directory]::Exists($ADKDepTools)) {
|
if ([System.IO.Directory]::Exists($ADKDepTools)) {
|
||||||
Write-Host "Will be using oscdimg.exe from system ADK."
|
Write-Host "Will be using oscdimg.exe from system ADK."
|
||||||
$OSCDIMG = "$ADKDepTools\oscdimg.exe"
|
$OSCDIMG = "$ADKDepTools\oscdimg.exe"
|
||||||
} else {
|
} else {
|
||||||
Write-Host "ADK folder not found. Will be using bundled oscdimg.exe."
|
Write-Host "ADK folder not found. Will be using bundled oscdimg.exe."
|
||||||
|
|
||||||
# Define the URL of the file to be downloaded
|
|
||||||
$url = "https://msdl.microsoft.com/download/symbols/oscdimg.exe/3D44737265000/oscdimg.exe"
|
$url = "https://msdl.microsoft.com/download/symbols/oscdimg.exe/3D44737265000/oscdimg.exe"
|
||||||
|
|
||||||
# Download oscdimg.exe if it doesn't exist in the script's directory
|
|
||||||
if (-not (Test-Path -Path $localOSCDIMGPath)) {
|
if (-not (Test-Path -Path $localOSCDIMGPath)) {
|
||||||
Write-Host "Downloading oscdimg.exe..."
|
Write-Host "Downloading oscdimg.exe..."
|
||||||
Invoke-WebRequest -Uri $url -OutFile $localOSCDIMGPath
|
Invoke-WebRequest -Uri $url -OutFile $localOSCDIMGPath
|
||||||
|
|
||||||
# Check if the download was successful
|
|
||||||
if (Test-Path $localOSCDIMGPath) {
|
if (Test-Path $localOSCDIMGPath) {
|
||||||
Write-Host "oscdimg.exe downloaded successfully."
|
Write-Host "oscdimg.exe downloaded successfully."
|
||||||
} else {
|
} else {
|
||||||
@ -760,7 +756,6 @@ if ([System.IO.Directory]::Exists($ADKDepTools)) {
|
|||||||
$OSCDIMG = $localOSCDIMGPath
|
$OSCDIMG = $localOSCDIMGPath
|
||||||
}
|
}
|
||||||
|
|
||||||
# Execute oscdimg.exe with the specified parameters
|
|
||||||
& "$OSCDIMG" '-m' '-o' '-u2' '-udfver102' "-bootdata:2#p0,e,b$ScratchDisk\tiny11\boot\etfsboot.com#pEF,e,b$ScratchDisk\tiny11\efi\microsoft\boot\efisys.bin" "$ScratchDisk\tiny11" "$PSScriptRoot\tiny11.iso"
|
& "$OSCDIMG" '-m' '-o' '-u2' '-udfver102' "-bootdata:2#p0,e,b$ScratchDisk\tiny11\boot\etfsboot.com#pEF,e,b$ScratchDisk\tiny11\efi\microsoft\boot\efisys.bin" "$ScratchDisk\tiny11" "$PSScriptRoot\tiny11.iso"
|
||||||
|
|
||||||
# Finishing up
|
# Finishing up
|
||||||
|
@ -409,26 +409,21 @@ Write-Host "The tiny11 image is now completed. Proceeding with the making of the
|
|||||||
Write-Host "Copying unattended file for bypassing MS account on OOBE..."
|
Write-Host "Copying unattended file for bypassing MS account on OOBE..."
|
||||||
Copy-Item -Path "$PSScriptRoot\autounattend.xml" -Destination "$ScratchDisk\tiny11\autounattend.xml" -Force >null
|
Copy-Item -Path "$PSScriptRoot\autounattend.xml" -Destination "$ScratchDisk\tiny11\autounattend.xml" -Force >null
|
||||||
Write-Host "Creating ISO image..."
|
Write-Host "Creating ISO image..."
|
||||||
# Define the path to the ADK Deployment Tools folder
|
|
||||||
$ADKDepTools = "C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\$hostarchitecture\Oscdimg"
|
$ADKDepTools = "C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\$hostarchitecture\Oscdimg"
|
||||||
$localOSCDIMGPath = "$PSScriptRoot\oscdimg.exe"
|
$localOSCDIMGPath = "$PSScriptRoot\oscdimg.exe"
|
||||||
|
|
||||||
# Check if the ADK Deployment Tools folder exists
|
|
||||||
if ([System.IO.Directory]::Exists($ADKDepTools)) {
|
if ([System.IO.Directory]::Exists($ADKDepTools)) {
|
||||||
Write-Host "Will be using oscdimg.exe from system ADK."
|
Write-Host "Will be using oscdimg.exe from system ADK."
|
||||||
$OSCDIMG = "$ADKDepTools\oscdimg.exe"
|
$OSCDIMG = "$ADKDepTools\oscdimg.exe"
|
||||||
} else {
|
} else {
|
||||||
Write-Host "ADK folder not found. Will be using bundled oscdimg.exe."
|
Write-Host "ADK folder not found. Will be using bundled oscdimg.exe."
|
||||||
|
|
||||||
# Define the URL of the file to be downloaded
|
|
||||||
$url = "https://msdl.microsoft.com/download/symbols/oscdimg.exe/3D44737265000/oscdimg.exe"
|
$url = "https://msdl.microsoft.com/download/symbols/oscdimg.exe/3D44737265000/oscdimg.exe"
|
||||||
|
|
||||||
# Download oscdimg.exe if it doesn't exist in the script's directory
|
|
||||||
if (-not (Test-Path -Path $localOSCDIMGPath)) {
|
if (-not (Test-Path -Path $localOSCDIMGPath)) {
|
||||||
Write-Host "Downloading oscdimg.exe..."
|
Write-Host "Downloading oscdimg.exe..."
|
||||||
Invoke-WebRequest -Uri $url -OutFile $localOSCDIMGPath
|
Invoke-WebRequest -Uri $url -OutFile $localOSCDIMGPath
|
||||||
|
|
||||||
# Check if the download was successful
|
|
||||||
if (Test-Path $localOSCDIMGPath) {
|
if (Test-Path $localOSCDIMGPath) {
|
||||||
Write-Host "oscdimg.exe downloaded successfully."
|
Write-Host "oscdimg.exe downloaded successfully."
|
||||||
} else {
|
} else {
|
||||||
@ -442,7 +437,6 @@ if ([System.IO.Directory]::Exists($ADKDepTools)) {
|
|||||||
$OSCDIMG = $localOSCDIMGPath
|
$OSCDIMG = $localOSCDIMGPath
|
||||||
}
|
}
|
||||||
|
|
||||||
# Execute oscdimg.exe with the specified parameters
|
|
||||||
& "$OSCDIMG" '-m' '-o' '-u2' '-udfver102' "-bootdata:2#p0,e,b$ScratchDisk\tiny11\boot\etfsboot.com#pEF,e,b$ScratchDisk\tiny11\efi\microsoft\boot\efisys.bin" "$ScratchDisk\tiny11" "$PSScriptRoot\tiny11.iso"
|
& "$OSCDIMG" '-m' '-o' '-u2' '-udfver102' "-bootdata:2#p0,e,b$ScratchDisk\tiny11\boot\etfsboot.com#pEF,e,b$ScratchDisk\tiny11\efi\microsoft\boot\efisys.bin" "$ScratchDisk\tiny11" "$PSScriptRoot\tiny11.iso"
|
||||||
|
|
||||||
# Finishing up
|
# Finishing up
|
||||||
|
Loading…
Reference in New Issue
Block a user