mirror of
https://github.com/rbalsleyMSFT/FFU.git
synced 2026-06-14 02:09:35 -06:00
3524d02047
Improves disk selection logic to handle systems with multiple fixed disks by prompting the user to choose the target disk when more than one candidate is detected. Refactors Get-HardDrive to return an array of disk candidates instead of a single disk object with extracted properties, enabling the main script to present options and validate user selection. Displays disk information in a formatted table showing disk number, size, sector size, bus type, and model to help users make informed decisions. Validates user input to ensure only available disk numbers can be selected, preventing deployment errors on multi-disk configurations. Maintains single-disk auto-selection behavior for systems with only one fixed disk, preserving the original user experience for common scenarios.