From 24c81c234f78494dc9a682f14f52a280e2f7d02b Mon Sep 17 00:00:00 2001 From: rbalsleyMSFT <53497092+rbalsleyMSFT@users.noreply.github.com> Date: Fri, 21 Nov 2025 22:59:46 -0800 Subject: [PATCH] Remove redundant Images directory creation logic --- FFUDevelopment/USBImagingToolCreator.ps1 | 7 ------- 1 file changed, 7 deletions(-) diff --git a/FFUDevelopment/USBImagingToolCreator.ps1 b/FFUDevelopment/USBImagingToolCreator.ps1 index 9a1ae4e..d938cb7 100644 --- a/FFUDevelopment/USBImagingToolCreator.ps1 +++ b/FFUDevelopment/USBImagingToolCreator.ps1 @@ -121,13 +121,6 @@ $Destination = $Drive + ":\" Start-Job -ScriptBlock $jobScriptBlock -ArgumentList $ImagesPath, $Destination | Out-Null } } -if(!($Images)){ - foreach ($Drive in $DeployDrives) { - WriteLog "Create images directory" - $drivepath = $Drive + ":\" - New-Item -Path "$drivepath" -Name Images -ItemType Directory -Force -Confirm: $false | Out-Null - } -} if($Drivers){ writelog "Copying driver files to all drives labeled deploy concurrently" foreach ($Drive in $DeployDrives) {