count folders within drivers folder, not all objects.

This commit is contained in:
rbalsleyMSFT
2024-03-08 16:23:42 -08:00
parent 5a5947d9b0
commit c7cef66aff
@@ -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)
{