From 3f9d49f72b6cd475e9f8281e8700d6e42e9941c5 Mon Sep 17 00:00:00 2001 From: Mike Date: Sun, 28 Aug 2022 01:56:10 -0700 Subject: [PATCH] Update Windows.md PowerShell that is compatible with both 5 and 7. --- secureboot/Windows.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/secureboot/Windows.md b/secureboot/Windows.md index b87310e..3990b80 100644 --- a/secureboot/Windows.md +++ b/secureboot/Windows.md @@ -64,7 +64,7 @@ $hashBytes = [byte[]]::new($hashString.length / 2) For($i=0; $i -lt $hashString.length; $i+=2) { $hashBytes[$i/2] = [convert]::ToByte($hashString,Substring($i, 2), 16) } -$hashBytes | set-content shimx64.hsh -encoding byte +[IO.File]::WriteAllBytes("$($pwd.Path)\shimx64.hsh",$hashBytes) ``` ### 2.5. Create EFI Signature List (ESL)