From c7cef66aff9fc2a4a3c62bcb43263c5ff1236a2c Mon Sep 17 00:00:00 2001 From: rbalsleyMSFT <53497092+rbalsleyMSFT@users.noreply.github.com> Date: Fri, 8 Mar 2024 16:23:42 -0800 Subject: [PATCH] count folders within drivers folder, not all objects. --- FFUDevelopment/WinPEDeployFFUFiles/ApplyFFU.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FFUDevelopment/WinPEDeployFFUFiles/ApplyFFU.ps1 b/FFUDevelopment/WinPEDeployFFUFiles/ApplyFFU.ps1 index 613f70b..4063f4c 100644 --- a/FFUDevelopment/WinPEDeployFFUFiles/ApplyFFU.ps1 +++ b/FFUDevelopment/WinPEDeployFFUFiles/ApplyFFU.ps1 @@ -383,7 +383,7 @@ $Drivers = $USBDrive + "Drivers" If (Test-Path -Path $Drivers) { #Check if multiple driver folders found, if so, just select one folder to save time/space - $DriverFolders = Get-ChildItem -Path $Drivers + $DriverFolders = Get-ChildItem -Path $Drivers -directory $DriverFoldersCount = $DriverFolders.count If ($DriverFoldersCount -gt 1) {