Resume signed Windows reconciliation after a proven missing helper acknowledgement

This commit is contained in:
2026-11-18 10:01:57 +01:00
parent 7cec566dfe
commit 3e6ce7f07c
4 changed files with 49 additions and 13 deletions
@@ -24,7 +24,7 @@ function Replace-Pin([string]$Path, [string]$Value) {
$temp = "$Path.next-$([Guid]::NewGuid())"
try {
[IO.File]::WriteAllText($temp, $Value, [Text.UTF8Encoding]::new($false))
[IO.File]::Replace($temp, $Path, $null)
[IO.File]::Replace($temp, $Path, [NullString]::Value)
} finally {
if (Test-Path -LiteralPath $temp) { Remove-Item -LiteralPath $temp }
}