From 393de977f226d9bdbc8915771f14a41a75fdae86 Mon Sep 17 00:00:00 2001 From: rbalsleyMSFT <53497092+rbalsleyMSFT@users.noreply.github.com> Date: Thu, 18 Apr 2024 16:10:16 -0700 Subject: [PATCH] 2404.2 when imaging devices with 4096 logical sector sizes, will set $copydrivers to $true if $installdrivers set to $true --- FFUDevelopment/BuildFFUVM.ps1 | 5 +++-- FFUDevelopment/WinPEDeployFFUFiles/ApplyFFU.ps1 | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/FFUDevelopment/BuildFFUVM.ps1 b/FFUDevelopment/BuildFFUVM.ps1 index ea1d339..be1b845 100644 --- a/FFUDevelopment/BuildFFUVM.ps1 +++ b/FFUDevelopment/BuildFFUVM.ps1 @@ -283,7 +283,7 @@ param( [bool]$CleanupDeployISO = $true, [bool]$CleanupAppsISO = $true ) -$version = '2403.1' +$version = '2404.2' #Check if Hyper-V feature is installed (requires only checks the module) $osInfo = Get-WmiObject -Class Win32_OperatingSystem @@ -1838,8 +1838,9 @@ if (-not ($ISOPath) -and ($OptionalFeatures -like '*netfx3*')) { } if (($LogicalSectorSizeBytes -eq 4096) -and ($installdrivers -eq $true)) { $installdrivers = $false + $CopyDrivers = $true WriteLog 'LogicalSectorSizeBytes is set to 4096, which is not supported for driver injection. Setting $installdrivers to $false' - WriteLog 'As a workaround, set -copydrivers $true to copy drivers to the deploy partition drivers folder' + WriteLog 'As a workaround, setting -copydrivers $true to copy drivers to the deploy partition drivers folder' WriteLog 'We are investigating this issue and will update the script if/when we have a fix' } if ($BuildUSBDrive -eq $true) { diff --git a/FFUDevelopment/WinPEDeployFFUFiles/ApplyFFU.ps1 b/FFUDevelopment/WinPEDeployFFUFiles/ApplyFFU.ps1 index f1b475b..221bb56 100644 --- a/FFUDevelopment/WinPEDeployFFUFiles/ApplyFFU.ps1 +++ b/FFUDevelopment/WinPEDeployFFUFiles/ApplyFFU.ps1 @@ -117,7 +117,7 @@ $LogFileName = 'ScriptLog.txt' $USBDrive = Get-USBDrive New-item -Path $USBDrive -Name $LogFileName -ItemType "file" -Force | Out-Null $LogFile = $USBDrive + $LogFilename -$version = '2403.1' +$version = '2404.2' WriteLog 'Begin Logging' WriteLog "Script version: $version"