tabs-not-spaces / Intune.USB.Creator

A module containing tools to assist with the creation of a bootable WinPE USB used to provision devices for enrollment to Intune.
GNU General Public License v3.0
132 stars 46 forks source link

diskNum flag not working #45

Closed ajkenah closed 2 years ago

ajkenah commented 2 years ago

When passing the diskNum flag to the Publish-ImageToUSB command, it still asks me to select which disk to use. The following line in the "Get-DiskToUse" module should probably be updated // From $diskNum = Read-Host -Prompt "$table`Please select Desired disk number for USB creation or CTRL+C to cancel"

// To If(!$diskNum){ $diskNum = Read-Host -Prompt "$table`Please select Desired disk number for USB creation or CTRL+C to cancel" }

tabs-not-spaces commented 2 years ago

@ajkenah did you want to quickly look over the change suggested and provide feedback if required. This should not cause any major breaking changes to implement immediately.