PowerTip: Use PowerShell to Identify Bootable Disks

The Scripting Guys

Dr Scripto

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 }   


The Scripting Guys
Dr Scripto

Follow Dr Scripto   

No Comments.