Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Use PowerShell to Identify Bootable Disks

$
0
0

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 }   



Viewing all articles
Browse latest Browse all 3333

Trending Articles