@@ -73,7 +73,7 @@ function Show-Usage {
7373}
7474
7575function Show-ADK-Req {
76- Write-Host " This script requires the Windows ADK be installed on the system. Avalable at http://aka.ms/adk" - ForegroundColor Red
76+ Write-Host " This script requires the Windows ADK be installed on the system. Available at http://aka.ms/adk" - ForegroundColor Red
7777 Write-Host " After install, open an admin-elevated 'Deploy and Imaging Tools Environment' command prompt provided with the ADK." - ForegroundColor Red
7878 Write-Host " Then run PowerShell from this command prompt and you should be good to go.`r`n " - ForegroundColor Red
7979}
@@ -227,7 +227,7 @@ function Initialize-MediaPaths {
227227 $localMediaPath = ($mountResult | Get-Volume ).DriveLetter + " :"
228228
229229 # Retrieve the volume label from the mounted ISO to be used later if a new ISO is created
230- $global :ISO_Lable = (Get-Volume - DriveLetter ($mountResult | Get-Volume ).DriveLetter).FileSystemLabel
230+ $global :ISO_Label = (Get-Volume - DriveLetter ($mountResult | Get-Volume ).DriveLetter).FileSystemLabel
231231
232232 } else {
233233
@@ -714,15 +714,15 @@ function Create-ISOMedia {
714714
715715 Write-Host " Writing 'Windows UEFI CA 2023' bootable ISO media at location [$ISOPath ]" - ForegroundColor Blue
716716
717- # If $ISOLable is not set, then defualt to "WINDOWS2023PCAISO"
718- if (-not $global :ISO_Lable ) {
719- $global :ISO_Lable = " WINDOWS2023PCAISO"
717+ # If $ISOLabel is not set, then default to "WINDOWS2023PCAISO"
718+ if (-not $global :ISO_Label ) {
719+ $global :ISO_Label = " WINDOWS2023PCAISO"
720720 }
721721
722722 # Generate a timestamp string in the following format: mm/dd/yyyy,hh:mm:ss
723723 $timestamp = Get-Date - Format " MM/dd/yyyy,HH:mm:ss"
724724
725- $runCommand = " -l$global :ISO_Lable -t$timestamp -bootdata:2#p0,e,b$global :Temp_Media_To_Update_Path \boot\etfsboot.com#pEF,e,b$global :Temp_Media_To_Update_Path \efi\microsoft\boot\efisys_ex.bin -u2 -udfver102 -o $global :Temp_Media_To_Update_Path $ISOPath "
725+ $runCommand = " -l$global :ISO_Label -t$timestamp -bootdata:2#p0,e,b$global :Temp_Media_To_Update_Path \boot\etfsboot.com#pEF,e,b$global :Temp_Media_To_Update_Path \efi\microsoft\boot\efisys_ex.bin -u2 -udfver102 -o $global :Temp_Media_To_Update_Path $ISOPath "
726726
727727 Write-Dbg - Host " Running: $global :oscdimg_exe $runCommand "
728728 try {
0 commit comments