New
#10
I use this PowerShell one-liner (found here) to extract the info from the setupact.log:
The only downside is that it has to be run elevated.Code:if (Test-Path $env:windir\Panther\setupact.log) {(Select-String 'Detected boot environment' -Path "$env:windir\Panther\setupact.log" -AllMatches).line -replace '.*:\s+'} else {if (Test-Path HKLM:\System\CurrentControlSet\control\SecureBoot\State) {"UEFI"} else {"BIOS"}}
Hope this helps...