From b0b46157181e5526789824faccfffea64de401bd Mon Sep 17 00:00:00 2001 From: Jeffrey <9938813+Raphire@users.noreply.github.com> Date: Sun, 17 May 2026 23:43:35 +0200 Subject: [PATCH] Add verbose logging for missing registry keys in Invoke-RegistryDeleteValueOperation --- Scripts/Helpers/ApplyRegistryRegFile.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Scripts/Helpers/ApplyRegistryRegFile.ps1 b/Scripts/Helpers/ApplyRegistryRegFile.ps1 index e58e115..814004c 100644 --- a/Scripts/Helpers/ApplyRegistryRegFile.ps1 +++ b/Scripts/Helpers/ApplyRegistryRegFile.ps1 @@ -151,6 +151,9 @@ function Invoke-RegistryDeleteValueOperation { ) if ($null -eq $KeyInfo.Key) { + $valueName = Get-NormalizedRegistryValueName -ValueName $Operation.ValueName + $displayValueName = if ([string]::IsNullOrEmpty($valueName)) { '(Default)' } else { $valueName } + Write-Verbose "Unable to find or open key '$($Operation.KeyPath)' and value '$displayValueName'" return }