13 lines
473 B
PowerShell
13 lines
473 B
PowerShell
# Проверка: как BCD реально отдаёт описания (через bcdedit).
|
|
$store = 'F:\efi\Paravis\Boot\bcd\bcd'
|
|
$log = 'C:\PF\bcd-check.txt'
|
|
$gfm = '{212da646-f065-474f-a688-d0ebfefd1573}'
|
|
$krd = '{de2ba8ef-1a63-40cd-aeec-56a8efcb0886}'
|
|
$out = @()
|
|
foreach ($g in $gfm, $krd) {
|
|
$r = & bcdedit /store $store /enum $g 2>&1
|
|
$out += ('=== ' + $g)
|
|
$out += ($r | ForEach-Object { $_ })
|
|
}
|
|
$out | Out-File -FilePath $log -Encoding utf8
|