Confirm-SecureBootUEFI not working as expected RRS feed

  • Question

  • Using 64 bit Windows 10 1709 I'm getting mixed results with using Confirm-SecureBootUEFI to check if the machine is in SecureBoot mode.

    I'm using this to test:

    $currentPrincipal = New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent())

    The first 2 lines are just to prove to me that I am actually in elevated mode; the third should show "true" but on many machines it shows "false" even though I know they're in secure boot mode. (I'm actually trying to use the HP Client Management Script Library to update the BIOS on a large number of machines; this needs UEFI boot enabled).

    Any ideas as to what I can look for?

    Wednesday, May 29, 2019 10:12 AM