![Rohde & Schwarz R&S Trusted Disk 3.3.1 Administration Manual Download Page 45](http://html1.mh-extra.com/html/rohde-and-schwarz/rands-trusted-disk-3-3-1/rands-trusted-disk-3-3-1_administration-manual_1477695045.webp)
Appendix
45
Administration manual 4603.7988.02 ─ 03
17. To confirm, click "Yes".
18. Click "Apply".
19. Exit the UEFI.
7.2
Stealth mode PowerShell script (UEFI/GPT)
bcdedit /export bcd-boot.Save
bcdedit /enum '{bootmgr}' /v > info.txt
$store = Get-Content info.txt
$print = $false
$result = @()
foreach ($line in $store)
{
if ($line.StartsWith("displayorder"))
{
$print = $true
}
elseif (-Not $line.StartsWith(" "))
{
$print = $false
}
if ($print)
{
$data = $line.Split(" ");
foreach ($word in $data)
{
if ($word.StartsWith("{"))
{
$= $word
}
}
}
}
mountvol s: /s
[int] $lfdNr = 1
foreach ($id in $result)
{
$name = 'bcd-boot.'+ $lfdNr
bcdedit /export $name
bcdedit /store $name /bootsequence $id
$target = 'S:\\EFI\\Microsoft\\Boot\\' + $name
copy $name $target
$lfdNr += 1
Stealth mode PowerShell script (UEFI/GPT)