Do you know which disk partition your system boots from?
Its easy to find out
function get-bootpartition { [CmdletBinding()] param ( [parameter(ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] [string]$computername="$env:COMPUTERNAME" ) PROCESS{ Get-WmiObject -Class Win32_DiskPartition -Filter "BootPartition = $true" -ComputerName $computername } }
The filter only returns the partition where BootPartition is set to True
Advertisement