From 6a0598fa09ee26d5b6dfbf84c54beaf00b62ec5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Fitt?= <36852431+rafalfitt@users.noreply.github.com> Date: Fri, 16 Sep 2022 23:22:37 +0200 Subject: [PATCH] Update dg-readiness-tool.md try+catch is needed to handle "Variable is currently undefined." error on some older computers Confirm-SecureBootUEFI : Variable is currently undefined: 0xC0000100 At line:1 char:1 + Confirm-SecureBootUEFI + ~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ResourceUnavailable: (Microsoft.Secur...BootUefiCommand:ConfirmSecureBootUefiCommand) [C onfirm-SecureBootUEFI], StatusException + FullyQualifiedErrorId : GetFWVarFailed,Microsoft.SecureBoot.Commands.ConfirmSecureBootUefiCommand https://docs.microsoft.com/en-us/powershell/module/secureboot/get-securebootuefi?view=windowsserver2022-ps --- .../credential-guard/dg-readiness-tool.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/windows/security/identity-protection/credential-guard/dg-readiness-tool.md b/windows/security/identity-protection/credential-guard/dg-readiness-tool.md index 603dcc1d9c..e1e0c996fa 100644 --- a/windows/security/identity-protection/credential-guard/dg-readiness-tool.md +++ b/windows/security/identity-protection/credential-guard/dg-readiness-tool.md @@ -796,7 +796,13 @@ function CheckOSArchitecture function CheckSecureBootState { - $_secureBoot = Confirm-SecureBootUEFI + try { + $_secureBoot = Confirm-SecureBootUEFI + } + catch + { + $_secureBoot = $false + } Log $_secureBoot if($_secureBoot) {