Upload files to ''

This commit is contained in:
Ekranoplan 2023-06-21 08:28:55 +00:00
parent 401da0beee
commit 23129ed030
2 changed files with 1810 additions and 0 deletions

18
ListBootapps.ps1 Normal file
View File

@ -0,0 +1,18 @@
$TCGLogBytes = Get-TCGLogContent -LogType SRTMCurrent
$TCGLog = ConvertTo-TCGEventLog -LogBytes $TCGLogBytes
$PCR4 = $TCGLog.Events.PCR4
foreach ($Event in $PCR4) {
if ($Event.EventType -eq "EV_EFI_BOOT_SERVICES_APPLICATION") {
$DevicePath = $Event.Event.DevicePath
if ($DevicePath -is [array]) {
foreach ($Device in $DevicePath) {
if (($Device.Type -eq "MEDIA_DEVICE_PATH") -and ($Device.SubType -eq "MEDIA_FILEPATH_DP")) {
Write-Host "Boot application:", $Device.DeviceInfo.PathName
}
}
} else {
$PathName = $DevicePath.DeviceInfo.PathName
Write-Host "Boot application:", $PathName
}
}
}

1792
TCGLogTools.psm1 Normal file

File diff suppressed because it is too large Load Diff