PowerShell for Windows Admins

Jan 15 2012   3:43PM GMT

Boot partition

Richard Siddaway Richard Siddaway Profile: Richard Siddaway


Do you know which disk partition your system boots from?

Its easy to find out

function get-bootpartition {            
param (            
  Get-WmiObject -Class Win32_DiskPartition -Filter "BootPartition = $true" -ComputerName $computername            

The filter only returns the partition where BootPartition is set to True

 Comment on this Post

There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when other members comment.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

Share this item with your network: