Resume signed Windows reconciliation after a proven missing helper acknowledgement
This commit is contained in:
@@ -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 }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user