PowerTip: Use PowerShell to Identify Bootable Disks

Summary: Use the Get-Disk cmdlet to identify all bootable devices that are attached.

Hey, Scripting Guy! Question How can I use Windows PowerShell to see which USB devices are set to be bootable on my workstation?

Hey, Scripting Guy! Answer Use the Get-Disk cmdlet and filter on the BootFromDisk and BusType properties, for example:

Get-Disk | Where { $_.BusType -eq 'USB' -and $_.BootFromDisk -eq $TRUE }   

Comments (3)

  1. Steve says:

    It would be nice if in your tips, you identify which powershell version supports the tip.

  2. Sean Kearney - Energized Tech says:


    Thanks for the feedback. In this particular Cmdlet it’s not so much the version of PowerShell as it is Windows. This is supported on Windows 8 and higher (or Server 2012 and higher)


  3. D.Ecke says:

    is there any way to check ISO files if they are bootable with Powershell? Like mounting the ISO first, and then…?

Skip to main content